Skip to content

Commit 87f3733

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Fix scaling issues for initialization
Iterate over the smaller set of variables.
1 parent 5f3520e commit 87f3733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/BackEnd/Initialization.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ algorithm
12231223
//BackendDump.dumpIncidenceMatrix(m_);
12241224

12251225
// get state-index list
1226-
stateIndices := BackendVariable.getVarIndexFromVariables(initVars, inEqSystem.orderedVars);
1226+
stateIndices := BackendVariable.getVarIndexFromVariables(inEqSystem.orderedVars, initVars);
12271227
//print("{" + stringDelimitList(List.map(stateIndices, intString), ",") + "}\n");
12281228

12291229
// get initial equation-index list

0 commit comments

Comments
 (0)