Skip to content

Commit

Permalink
- Dynamic State Selection, add missing equations to the system if num…
Browse files Browse the repository at this point in the history
…ber of equations is equal to number of variables

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14517 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 22, 2012
1 parent 18e6298 commit 2248115
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/BackEnd/IndexReduction.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2005,8 +2005,10 @@ algorithm
true = intEq(freeStates,neqns);
dummyStates = List.map(varlst,BackendVariable.varCref);
dummyStates = listAppend(dummyStates,inDummyStates);
// add all reamain equations to the systems
syst = BackendEquation.equationsAddDAE(eqnslst,isyst);
then
(varlst,dummyStates,isyst,ishared,iSetIndex);
(varlst,dummyStates,syst,ishared,iSetIndex);
case (_,_,_,_,_,_,_,_,_,(so,orgEqnsLst,mapEqnIncRow,mapIncRowEqn,noofeqns),_,_,_)
equation
// try to select dummy vars
Expand Down

0 comments on commit 2248115

Please sign in to comment.