Skip to content

Commit

Permalink
Force evaluation of structural solverMethod
Browse files Browse the repository at this point in the history
See: Modelica_Synchronous.Examples.Systems.ControlledMixingUnit
  • Loading branch information
rfranke committed Apr 12, 2016
1 parent 81787f3 commit 82c3f1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -4671,6 +4671,9 @@ algorithm
ty2 = Types.arrayElementType(Types.getPropType(prop2));
(c,_) = Types.matchType(c,ty1,DAE.T_CLOCK_DEFAULT,true);
(solverMethod,_) = Types.matchType(solverMethod,ty2,DAE.T_STRING_DEFAULT,true);
// evaluate structural solverMethod (rfranke)
(cache, val, _) = Ceval.ceval(cache, env, solverMethod, false, NONE(), Absyn.MSG(info), 0);
solverMethod = ValuesUtil.valueExp(val);
call = DAE.CLKCONST(DAE.SOLVER_CLOCK(c, solverMethod));
then (cache, call, prop);

Expand All @@ -4683,6 +4686,9 @@ algorithm
ty2 = Types.arrayElementType(Types.getPropType(prop2));
(c,_) = Types.matchType(c,ty1,DAE.T_CLOCK_DEFAULT,true);
(solverMethod,_) = Types.matchType(solverMethod,ty2,DAE.T_STRING_DEFAULT,true);
// evaluate structural solverMethod (rfranke)
(cache, val, _) = Ceval.ceval(cache, env, solverMethod, false, NONE(), Absyn.MSG(info), 0);
solverMethod = ValuesUtil.valueExp(val);
call = DAE.CLKCONST(DAE.SOLVER_CLOCK(c, solverMethod));
then (cache, call, prop);

Expand Down

0 comments on commit 82c3f1b

Please sign in to comment.