Skip to content

Commit

Permalink
[NF] Disable warning when checking model.
Browse files Browse the repository at this point in the history
- Disable the warning for an unbound parameter with an Evaluate = true
  annotation when checking a model.
  • Loading branch information
perost committed Dec 10, 2019
1 parent a4f0ef3 commit c2927a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/NFFrontEnd/NFInst.mo
Expand Up @@ -3375,7 +3375,7 @@ algorithm
isStructural := false;
elseif Binding.isUnbound(compBinding) then
// Except parameters with no bindings.
if not evalAllParams then
if not evalAllParams and not Flags.getConfigBool(Flags.CHECK_MODEL) then
// Print a warning if a parameter has an Evaluate=true annotation but no binding.
Error.addSourceMessage(Error.UNBOUND_PARAMETER_EVALUATE_TRUE,
{InstNode.name(compNode)}, InstNode.info(compNode));
Expand Down

0 comments on commit c2927a9

Please sign in to comment.