Skip to content

Commit

Permalink
- handle vars with StateSelect.prefer as states
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9554 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jul 29, 2011
1 parent 77883d1 commit 8f061bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Compiler/BackEnd/BackendDAECreate.mo
Expand Up @@ -710,6 +710,11 @@ algorithm
equation
states = BackendDAEUtil.treeAdd(states, v, 0);
then (BackendDAE.STATE(),states);
// Or states have StateSelect.prefer
case (DAE.VARIABLE(),_,v,_,_,_,states,SOME(DAE.VAR_ATTR_REAL(stateSelectOption = SOME(DAE.PREFER()))))
equation
states = BackendDAEUtil.treeAdd(states, v, 0);
then (BackendDAE.STATE(),states);

case (DAE.VARIABLE(),(DAE.T_BOOL(_),_),cr,dir,flowPrefix,_,states,_)
equation
Expand Down

0 comments on commit 8f061bd

Please sign in to comment.