Skip to content

Commit

Permalink
- stupid fix for PrismaticConstraint
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Jul 16, 2015
1 parent cc8f06f commit c2ea9a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Compiler/BackEnd/EvaluateFunctions.mo
Expand Up @@ -172,6 +172,7 @@ algorithm

//traverse the eqSystem for function calls
(eqLst, (shared, addEqs, _, changed)) := List.mapFold(eqLst, evalFunctions_findFuncs, (sharedIn, {}, 1, changed));
eqLst := listReverse(eqLst);
eqLst := listAppend(eqLst, addEqs);
eqs := BackendEquation.listEquation(eqLst);
eqSysOut := BackendDAEUtil.setEqSystEqs(eqSysIn, eqs);
Expand Down Expand Up @@ -211,6 +212,7 @@ algorithm
addEqs = listAppend(addEqs1,addEqs);
addEqs = listAppend(addEqs2,addEqs);
eq = BackendDAE.EQUATION(lhsExp,rhsExp,source,attr);
//if changed then print("FROM EQ "+BackendDump.equationString(eqIn)+"\n");print("GOT EQ "+BackendDump.equationString(eq)+"\n"); end if;
then
(eq,(shared,addEqs,idx+1,changed));
case(BackendDAE.ARRAY_EQUATION(),_)
Expand Down Expand Up @@ -240,6 +242,7 @@ algorithm
eq = if intEq(size,0) then BackendDAE.EQUATION(lhsExp,rhsExp,source,attr) else BackendDAE.COMPLEX_EQUATION(size,lhsExp,rhsExp,source,attr);
//since tuple=tuple is not supported, these equations are converted into a list of simple equations
(eq,addEqs) = convertTupleEquations(eq,addEqs);
//if changed then print("FROM EQ "+BackendDump.equationString(eqIn)+"\n");print("GOT EQ "+BackendDump.equationString(eq)+"\n"); end if;
then
(eq,(shared,addEqs,idx+1,changed));
else
Expand Down

0 comments on commit c2ea9a5

Please sign in to comment.