We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e8d7d8 commit 068ec85Copy full SHA for 068ec85
src/main/java/com/powsybl/openloadflow/ac/equations/vector/AcVectorEngine.java
@@ -229,7 +229,8 @@ private void initEquationData() {
229
Arrays.stream(termsByVariableAndEquation).forEach(t -> t.setVectorIndex(-1));
230
}
231
232
- Collection<Equation<AcVariableType, AcEquationType>> equationList = equationSystem.getEquations();
+ Collection<Equation<AcVariableType, AcEquationType>> equationList = equationSystem.getEquations()
233
+ .stream().sorted(Comparator.comparingInt(Equation::getElementNum)).toList();
234
int equationCount = equationList.size();
235
sortedEquationIndexArray = new int[equationCount];
236
variableCountPerEquation = new int[equationCount];
0 commit comments