Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Fix lowerEqn for initial complex equations.
Browse files Browse the repository at this point in the history
- Split initial complex equations in the same way as normal complex
  equations in BackendDAECreate.lowerEqn.

Belonging to [master]:
  - #2825
  • Loading branch information
perost authored and OpenModelica-Hudson committed Dec 12, 2018
1 parent c257574 commit a16d2aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/BackendDAECreate.mo
Expand Up @@ -1346,9 +1346,9 @@ algorithm
equation
//TODO: remove inline
(DAE.EQUALITY_EXPS(e1_1,e2_1), source) = Inline.simplifyAndForceInlineEquationExp(DAE.EQUALITY_EXPS(e1,e2), (SOME(functionTree), {DAE.NORM_INLINE(), DAE.DEFAULT_INLINE()}), source);
size = Expression.sizeOf(Expression.typeof(e1_1));
eqns = lowerExtendedRecordEqn(e1_1,e2_1,source,BackendDAE.EQ_ATTR_DEFAULT_DYNAMIC,functionTree,inIEquations);
then
(inEquations,inREquations,BackendDAE.COMPLEX_EQUATION(size,e1_1,e2_1,source,BackendDAE.EQ_ATTR_DEFAULT_DYNAMIC)::inIEquations);
(inEquations,inREquations,eqns);

// equalityConstraint equations, moved to removed equations
case DAE.ARRAY_EQUATION(dimension=dims, exp = e1 as DAE.ARRAY(array={}),array = e2 as DAE.CALL(path=path),source = source)
Expand Down

0 comments on commit a16d2aa

Please sign in to comment.