Skip to content

Commit

Permalink
- do not add variables with stateSelect=StateSelect.prefer to states
Browse files Browse the repository at this point in the history
- update testsuite

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8708 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Apr 19, 2011
1 parent 3ac3548 commit 555475e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Compiler/BackEnd/BackendDAECreate.mo
Expand Up @@ -726,12 +726,6 @@ algorithm
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
failure(BackendVariable.topLevelInput(cr, dir, flowPrefix));
Expand Down

0 comments on commit 555475e

Please sign in to comment.