Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 - fixed discrete expression detection


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15494 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Mar 6, 2013
1 parent c63606a commit 362901b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/BackEnd/BackendDAEUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1448,8 +1448,10 @@ algorithm
equation
((BackendDAE.VAR(varKind = kind)::_),_) = BackendVariable.getVar(cr, vars);
res = isKindDiscrete(kind);
b = Util.getOptionOrDefault(blst,res);
b = Util.boolAndList({b,res});
then
((e,false,(vars,knvars,SOME(res))));
((e,false,(vars,knvars,SOME(b))));
// 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 continuous
Expand Down

0 comments on commit 362901b

Please sign in to comment.