Skip to content

Commit

Permalink
[NF] Fix function variability.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost committed Sep 7, 2020
1 parent 3256d68 commit 66b07aa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions OMCompiler/Compiler/NFFrontEnd/NFCall.mo
Expand Up @@ -315,11 +315,8 @@ public
typed_args := matchedFunc.args;

args := {};
// if is impure, make it a parameter expression
// see https://trac.openmodelica.org/OpenModelica/ticket/5133
var := if Function.isImpure(func) or Function.isOMImpure(func)
then Variability.PARAMETER
else Variability.CONSTANT;
var := Variability.CONSTANT;

for a in typed_args loop
(arg_exp, _, arg_var) := a;
args := arg_exp :: args;
Expand Down

0 comments on commit 66b07aa

Please sign in to comment.