Skip to content

Commit

Permalink
Fix function evaluation for HelmholtzMedia (#8586)
Browse files Browse the repository at this point in the history
  • Loading branch information
perost committed Feb 19, 2022
1 parent b6e1ec9 commit d6e04c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions OMCompiler/Compiler/NFFrontEnd/NFEvalFunction.mo
Expand Up @@ -557,8 +557,7 @@ algorithm
// A mutable expression, only evaluate the expression it contains.
case Expression.MUTABLE()
algorithm
Expression.applyMutable(exp,
function Ceval.evalExp(target = NFCeval.EvalTarget.IGNORE_ERRORS()));
Expression.applyMutable(exp, evaluateReplacement2);
then
exp;

Expand All @@ -569,7 +568,7 @@ algorithm
then
exp;

else Ceval.evalExp(exp);
else if Expression.contains(exp, Expression.isEmpty) then exp else Ceval.evalExp(exp);
end match;
end evaluateReplacement2;

Expand Down

0 comments on commit d6e04c0

Please sign in to comment.