Skip to content

Commit

Permalink
bugfix for removeSimpleEquations
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5066 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Mar 2, 2010
1 parent 1424f54 commit 69c7b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/DAELow.mo
Expand Up @@ -3407,8 +3407,8 @@ algorithm
(e1 as DAE.CREF(cr1,_),e2,source) = simpleEquation(EQUATION(e2,e1,source),true);
failure(_ = treeGet(states, cr1)) "cr1 not state";
isVariable(cr1, vars, knvars) "cr1 not constant";
repl_1 = VarTransform.addReplacement(repl, cr1, e2);
false = isTopLevelInputOrOutput(cr1,vars,knvars);
repl_1 = VarTransform.addReplacement(repl, cr1, e2);
mvars_1 = treeAdd(mvars, cr1, 0);
(eqns_1,seqns_1,mvars_2,repl_2) = removeSimpleEquations2(eqns, vars, knvars, mvars_1, states, repl_1);
then
Expand Down

0 comments on commit 69c7b3f

Please sign in to comment.