Skip to content

Commit

Permalink
[NF] Suppress Call.evaluateCallTypeDim errors.
Browse files Browse the repository at this point in the history
- Call.evaluateCallTypeDim is allowed to fail to constant evaluate the
  dimension expression, so suppress any errors that might be generated.
  • Loading branch information
perost committed Feb 7, 2020
1 parent df2744d commit de5194e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OMCompiler/Compiler/NFFrontEnd/NFCall.mo
Expand Up @@ -1426,10 +1426,12 @@ protected
ptree := buildParameterTree(fnArgs, ptree);
exp := Expression.map(dim.exp, function evaluateCallTypeDimExp(ptree = ptree));

ErrorExt.setCheckpoint(getInstanceName());
try
exp := Ceval.evalExp(exp, Ceval.EvalTarget.IGNORE_ERRORS());
else
end try;
ErrorExt.rollBack(getInstanceName());
then
Dimension.fromExp(exp, Variability.CONSTANT);

Expand Down

0 comments on commit de5194e

Please sign in to comment.