Skip to content

Commit 3a653ac

Browse files
author
Leonardo Laguna
committed
-Fixed problem when extracting uncertainties with approximated equations
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15109 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 3d0f54f commit 3a653ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Compiler/BackEnd/Uncertainties.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ algorithm
158158
mExt=getExtIncidenceMatrix(m);
159159

160160
approximatedEquations_one = getEquationsWithApproximatedAnnotation(dlow_1);
161-
approximatedEquations = List.map1(approximatedEquations_one,intAdd,-1);
161+
approximatedEquations = List.flatten(List.map1r(approximatedEquations_one,listGet,arrayList(mapEqnIncRow)));
162162

163-
mExt=removeEquations(mExt,approximatedEquations_one);
163+
mExt=removeEquations(mExt,approximatedEquations);
164164

165165
printSep(getMathematicaText("Approximated equations to be removed"));
166-
printSep(equationsToMathematicaGrid(approximatedEquations_one,allEqs,allVars,sharedVars,mapIncRowEqn));
166+
printSep(equationsToMathematicaGrid(approximatedEquations,allEqs,allVars,sharedVars,mapIncRowEqn));
167167

168168
printSep(getMathematicaText("After eliminating approximated equations"));
169169
printSep(equationsToMathematicaGrid(getEquationsNumber(mExt),allEqs,allVars,sharedVars,mapIncRowEqn));

0 commit comments

Comments
 (0)