Skip to content

Commit 555475e

Browse files
author
Jens Frenkel
committed
- do not add variables with stateSelect=StateSelect.prefer to states
- update testsuite git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8708 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 3ac3548 commit 555475e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Compiler/BackEnd/BackendDAECreate.mo

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -726,12 +726,6 @@ algorithm
726726
states = BackendDAEUtil.treeAdd(states, v, 0);
727727
then (BackendDAE.STATE(),states);
728728

729-
// Or states have StateSelect.prefer
730-
case (DAE.VARIABLE(),_,v,_,_,_,states,SOME(DAE.VAR_ATTR_REAL(stateSelectOption = SOME(DAE.PREFER()))))
731-
equation
732-
states = BackendDAEUtil.treeAdd(states, v, 0);
733-
then (BackendDAE.STATE(),states);
734-
735729
case (DAE.VARIABLE(),(DAE.T_BOOL(_),_),cr,dir,flowPrefix,_,states,_)
736730
equation
737731
failure(BackendVariable.topLevelInput(cr, dir, flowPrefix));

0 commit comments

Comments
 (0)