Skip to content

Commit

Permalink
Fix lambda position in non-torn homotopy components
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaeuber authored and OpenModelica-Hudson committed Jan 16, 2018
1 parent 991cbcb commit 2716d58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -6023,7 +6023,8 @@ algorithm

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

Expand Down

0 comments on commit 2716d58

Please sign in to comment.