Skip to content

Commit

Permalink
- BackendDAECreate.mo
Browse files Browse the repository at this point in the history
  - lowervarkind StateSelect.prefer as STATE

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7294 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 5, 2010
1 parent 7ff67f6 commit 2b2f8a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Compiler/BackendDAECreate.mo
Expand Up @@ -754,7 +754,13 @@ algorithm
then
(BackendDAE.STATE(),states);
// Or states have StateSelect.always
case (DAE.VARIABLE(),_,v,_,_,_,states,SOME(DAE.VAR_ATTR_REAL(_,_,_,_,_,_,_,SOME(DAE.ALWAYS()),_,_,_)))
case (DAE.VARIABLE(),_,v,_,_,_,states,SOME(DAE.VAR_ATTR_REAL(stateSelectOption = SOME(DAE.ALWAYS()))))
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);
Expand Down

0 comments on commit 2b2f8a7

Please sign in to comment.