Skip to content

Commit 75df3a9

Browse files
author
Volker Waurich
committed
- fixed bug at partial function evaluation
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20296 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent a9c8b63 commit 75df3a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Compiler/BackEnd/EvaluateFunctions.mo

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,9 @@ algorithm
765765
//stmts1 := listReverse(stmts1);
766766
//stmts1 := List.filterOnTrue(stmts1,statementRHSIsNotConst);
767767
// remove the constant values
768-
stmts1 := traverseStmtsAndUpdate(stmts1,stmtCanBeRemoved,replIn,{});
768+
//stmts1 := traverseStmtsAndUpdate(stmts1,stmtCanBeRemoved,replIn,{});
769+
stmts1 := listReverse(stmts1);
770+
769771
// build new crefs for the scalars
770772
(stmts1,_) := DAEUtil.traverseDAEEquationsStmts(stmts1,makeIdentCref,varScalarCrefs);
771773
(stmts1,_) := DAEUtil.traverseDAEEquationsStmts(stmts1,makeIdentCref,constScalarCrefs);

0 commit comments

Comments
 (0)