Skip to content

Commit

Permalink
Try to evaluate all parameters in getModelInstance (#9871)
Browse files Browse the repository at this point in the history
  • Loading branch information
perost committed Dec 7, 2022
1 parent 7dc99cd commit ec18613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Script/NFApi.mo
Expand Up @@ -1158,7 +1158,7 @@ algorithm
// json := dumpJSONBuiltinClassComponents(comp.classInst, elem.modifications, json);
//end if;

is_constant := comp.attributes.variability <= Variability.STRUCTURAL_PARAMETER;
is_constant := comp.attributes.variability <= Variability.PARAMETER;

if Binding.isBound(comp.binding) then
json := JSON.addPair("value", dumpJSONBinding(comp.binding, evaluate = is_constant), json);
Expand Down

0 comments on commit ec18613

Please sign in to comment.