Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit eb421e8

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Evaluate bindings of complex final parameters.
Belonging to [master]: - #2900
1 parent bf2e0a4 commit eb421e8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Compiler/NFFrontEnd/NFFlatten.mo

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,11 @@ algorithm
525525
comp_var := Component.variability(comp);
526526
if comp_var <= Variability.STRUCTURAL_PARAMETER or binding_var <= Variability.STRUCTURAL_PARAMETER then
527527
binding_exp := Ceval.evalExp(binding_exp);
528+
elseif binding_var == Variability.PARAMETER and Component.isFinal(comp) then
529+
try
530+
binding_exp := Ceval.evalExp(binding_exp);
531+
else
532+
end try;
528533
else
529534
binding_exp := SimplifyExp.simplify(binding_exp);
530535
end if;

0 commit comments

Comments
 (0)