Skip to content

Commit

Permalink
- fixed a bug in isExpDiscrete
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13533 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Oct 20, 2012
1 parent 560e06e commit 5170f1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/BackendDAEUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ algorithm
((e,false,(vars,knvars,SOME(res))));
// builtin variable time is not discrete
case (((e as DAE.CREF(componentRef = DAE.CREF_IDENT("time",_,_)),(vars,knvars,blst)))) then ((e,false,(vars,knvars,SOME(false))));
// Known variables that are input are continous
// Known variables that are input are continuous
case (((e as DAE.CREF(componentRef = cr),(vars,knvars,blst))))
equation
(backendVar::_,_) = BackendVariable.getVar(cr,knvars);
Expand All @@ -1709,7 +1709,7 @@ algorithm
equation
b1 = isDiscreteExp(e1,vars,knvars);
b2 = isDiscreteExp(e2,vars,knvars);
b = Util.boolOrList({b1,b2});
b = Util.boolAndList({b1,b2});
then ((e,false,(vars,knvars,SOME(b))));
case (((e as DAE.CALL(path = Absyn.IDENT(name = "pre")),(vars,knvars,blst))))
equation
Expand Down

0 comments on commit 5170f1c

Please sign in to comment.