Skip to content

Commit

Permalink
- use type from componentref for lowerEqn (DEFINE,INITIALDEFINE)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Frenkel committed Nov 2, 2010
1 parent 3504e6d commit ce0332f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Compiler/BackendDAECreate.mo
Expand Up @@ -946,14 +946,16 @@ algorithm

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

case (DAE.INITIALDEFINE(componentRef = cr1, exp = e2, source = source))
equation
e1 = ExpressionSimplify.simplify(DAE.CREF(cr1, DAE.ET_OTHER()));
e1 = Expression.crefExp(cr1);
e1 = ExpressionSimplify.simplify(e1);
e2 = ExpressionSimplify.simplify(e2);
then
BackendDAE.EQUATION(e1,e2,source);
Expand Down

0 comments on commit ce0332f

Please sign in to comment.