Skip to content

Commit

Permalink
- fix indexing of partial function evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Jun 15, 2015
1 parent 55f2122 commit 9b7f32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/EvaluateFunctions.mo
Expand Up @@ -507,7 +507,7 @@ algorithm
hasReinit = List.fold(algs,hasReinitFold,false);
abort = hasReturn or hasTerminate or hasReinit;
// go through all algorithms and replace the variables with constants if possible, extend the ht after each algorithm
(algs,(funcs,repl,idx)) = List.mapFold(algs,evaluateFunctions_updateAlgElements,(funcsIn,repl,1));
(algs,(funcs,repl,idx)) = List.mapFold(algs,evaluateFunctions_updateAlgElements,(funcsIn,repl,eqIdx));
//print("\nall algs after"+intString(listLength(algs))+"\n"+DAEDump.dumpElementsStr(algs)+"\n");
//BackendVarTransform.dumpReplacements(repl);

Expand Down

0 comments on commit 9b7f32e

Please sign in to comment.