Skip to content

Commit

Permalink
- added small fixes to isDiscreteExp
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9762 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Sep 9, 2011
1 parent 28ea55c commit 345db74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -1838,18 +1838,17 @@ algorithm
// Known variables that are input are continous
case (((e as DAE.CREF(componentRef = cr),(vars,knvars,blst))))
equation
failure((_,_) = BackendVariable.getVar(cr, vars));
(backendVar::_,_) = BackendVariable.getVar(cr,knvars);
true = isInput(backendVar);
then
((e,false,(vars,knvars,SOME(false))));

// parameters & constants
// are always discrete
case (((e as DAE.CREF(componentRef = cr),(vars,knvars,blst))))
equation
failure((_,_) = BackendVariable.getVar(cr, vars));
((BackendDAE.VAR(varKind = kind) :: _),_) = BackendVariable.getVar(cr, knvars);
b = isKindDiscrete(kind);
b = Util.getOptionOrDefault(blst,true);
then
((e,false,(vars,knvars,SOME(b))));

Expand Down

0 comments on commit 345db74

Please sign in to comment.