Skip to content

Commit

Permalink
- fix for bug 1329
Browse files Browse the repository at this point in the history
  - DAELow.lowerEqn generated for DAE.DEFINE a=a equations

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6529 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Oct 22, 2010
1 parent 7d12bf1 commit ac7b87e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Compiler/DAELow.mo
Expand Up @@ -6132,17 +6132,17 @@ algorithm
then
EQUATION(e1,e2,source);

case (DAE.DEFINE(componentRef = cr1, exp = e1, source = source))
case (DAE.DEFINE(componentRef = cr1, exp = e2, source = source))
equation
e1 = Exp.simplify(DAE.CREF(cr1, DAE.ET_OTHER()));
e2 = Exp.simplify(e1);
e2 = Exp.simplify(e2);
then
EQUATION(e1,e2,source);

case (DAE.INITIALDEFINE(componentRef = cr1, exp = e1, source = source))
case (DAE.INITIALDEFINE(componentRef = cr1, exp = e2, source = source))
equation
e1 = Exp.simplify(DAE.CREF(cr1, DAE.ET_OTHER()));
e2 = Exp.simplify(e1);
e2 = Exp.simplify(e2);
then
EQUATION(e1,e2,source);
end matchcontinue;
Expand Down

0 comments on commit ac7b87e

Please sign in to comment.