Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
[SimCode] fixing symbolic jacobians order for info
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #1930
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Oct 23, 2017
1 parent 3532b10 commit 7f2aee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCodeUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -446,12 +446,12 @@ algorithm
(LinearMatrices, uniqueEqIndex) := createJacobianLinearCode(symJacs, modelInfo, uniqueEqIndex);
(SymbolicJacs, modelInfo, SymbolicJacsTemp) := addAlgebraicLoopsModelInfoSymJacs(LinearMatrices, modelInfo);
SymbolicJacs := listAppend(SymbolicJacsFMI, SymbolicJacs);
SymbolicJacs := listAppend(SymbolicJacs, SymbolicJacsTemp);
SymbolicJacs := listAppend(SymbolicJacs, SymbolicJacsStateSelect);
// collect jacobian equation only for equantion info file
jacobianEquations := collectAllJacobianEquations(SymbolicJacs);

SymbolicJacs := listAppend(listReverse(SymbolicJacsNLS), SymbolicJacs);
SymbolicJacs := listAppend(SymbolicJacs, SymbolicJacsTemp);
jacobianSimvars := collectAllJacobianVars(SymbolicJacs);
modelInfo := setJacobianVars(jacobianSimvars, modelInfo);
seedVars := collectAllSeedVars(SymbolicJacs);
Expand Down

0 comments on commit 7f2aee4

Please sign in to comment.