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

Commit 2716d58

Browse files
ptaeuberOpenModelica-Hudson
authored andcommitted
Fix lambda position in non-torn homotopy components
Belonging to [master]: - #2111 - OpenModelica/OpenModelica-testsuite#825
1 parent 991cbcb commit 2716d58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Compiler/BackEnd/BackendDAEOptimize.mo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6023,7 +6023,8 @@ algorithm
60236023

60246024
if hasHomotopy then
60256025
hasAnyHomotopy = true;
6026-
comp = BackendDAE.EQUATIONSYSTEM(eqnIndexes, listAppend(varIndexes, {lambdaIdx}), jac, jacType, mixedSystem);
6026+
// Add lambda in front of the list, list seems to be reversed later for EQUATIONSYSTEM
6027+
comp = BackendDAE.EQUATIONSYSTEM(eqnIndexes, lambdaIdx::varIndexes, jac, jacType, mixedSystem);
60276028
end if;
60286029
then comp;
60296030

0 commit comments

Comments
 (0)