Skip to content

Commit

Permalink
- fix #3014
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23666 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Dec 4, 2014
1 parent e09f1fe commit 2e8c09e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -6310,7 +6310,7 @@ algorithm
list<BackendDAE.Equation> initialEqs_lst;
Integer numberOfInitialEquations, numberOfInitialAlgorithms;

list<SimCode.SimEqSystem> residual_equations, allEquations, removedEquations, knvarseqns, aliasEquations, removedInitialEquations;
list<SimCode.SimEqSystem> residual_equations, allEquations, solvedEquations, removedEquations, knvarseqns, aliasEquations, removedInitialEquations;
BackendDAE.EqSystems systs;
BackendDAE.Shared shared;
BackendDAE.Variables knvars, aliasVars;
Expand All @@ -6320,14 +6320,14 @@ algorithm
shared as BackendDAE.SHARED(knownVars=knvars,
aliasVars=aliasVars,
removedEqs=removedEqs))), _, _, _) equation
// generate equations from the known unfixed variables
((uniqueEqIndex, allEquations)) = BackendVariable.traverseBackendDAEVars(knvars, traverseKnVarsToSimEqSystem, (iuniqueEqIndex, {}));
// generate equations from the solved systems
(uniqueEqIndex, _, _, allEquations, _, tempvars, _, _, _) = createEquationsForSystems(systs, shared, iuniqueEqIndex, {}, {}, {}, {}, {}, itempvars, 0, {}, {}, SimCode.NO_MAPPING());
(uniqueEqIndex, _, _, solvedEquations, _, tempvars, _, _, _) = createEquationsForSystems(systs, shared, uniqueEqIndex, {}, {}, {}, {}, {}, itempvars, 0, {}, {}, SimCode.NO_MAPPING());
allEquations = listAppend(allEquations, solvedEquations);
// generate equations from the removed equations
((uniqueEqIndex, removedEquations)) = BackendEquation.traverseEquationArray(removedEqs, traversedlowEqToSimEqSystem, (uniqueEqIndex, {}));
allEquations = listAppend(allEquations, removedEquations);
// generate equations from the known unfixed variables
((uniqueEqIndex, knvarseqns)) = BackendVariable.traverseBackendDAEVars(knvars, traverseKnVarsToSimEqSystem, (uniqueEqIndex, {}));
allEquations = listAppend(allEquations, knvarseqns);
// generate equations from the alias variables
((uniqueEqIndex, aliasEquations)) = BackendVariable.traverseBackendDAEVars(aliasVars, traverseAliasVarsToSimEqSystem, (uniqueEqIndex, {}));
allEquations = listAppend(allEquations, aliasEquations);
Expand Down

0 comments on commit 2e8c09e

Please sign in to comment.