Skip to content

Commit

Permalink
- fix for evalAllParams
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Sep 25, 2015
1 parent 4a58ffa commit aca0480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/EvaluateParameter.mo
Expand Up @@ -1238,7 +1238,7 @@ algorithm
(bindExp,_) := BackendVarTransform.replaceExp(bindExp,repl,NONE());
bindExp := EvaluateFunctions.evaluateConstantFunctionCallExp(bindExp,functionTree);
bindExp := ExpressionSimplify.simplify(bindExp);
if Expression.isEvaluatedConst(bindExp) then
if Expression.isEvaluatedConst(bindExp) and not ComponentReference.isArrayElement(var.varName) then
//print("BIND "+ExpressionDump.printExpStr(bindExp)+"\n");
//print("BIND "+ExpressionDump.dumpExpStr(bindExp,1)+"\n");
cref := BackendVariable.varCref(var);
Expand Down

0 comments on commit aca0480

Please sign in to comment.