Skip to content

Commit

Permalink
fix #3684
Browse files Browse the repository at this point in the history
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Feb 18, 2016
1 parent 7e414c9 commit 5a950a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -3544,7 +3544,8 @@ algorithm
if Flags.isSet(Flags.JAC_DUMP2) then
print("analytical Jacobians -> creating SimCode equations for Matrix " + name + " time: " + realString(clock()) + "\n");
end if;
(columnEquations, _, uniqueEqIndex, tempvars) = createEquations(false, false, false, false, syst, shared, comps, iuniqueEqIndex, itempvars);
// generate also discrete equations, they might be introduced by wrapFunctionCalls
(columnEquations, _, uniqueEqIndex, tempvars) = createEquations(false, false, true, false, syst, shared, comps, iuniqueEqIndex, itempvars);
if Flags.isSet(Flags.JAC_DUMP2) then
print("analytical Jacobians -> created all SimCode equations for Matrix " + name + " time: " + realString(clock()) + "\n");
end if;
Expand Down Expand Up @@ -3786,7 +3787,8 @@ algorithm
if Flags.isSet(Flags.JAC_DUMP2) then
print("analytical Jacobians -> creating SimCode equations for Matrix " + name + " time: " + realString(clock()) + "\n");
end if;
(columnEquations, _, uniqueEqIndex, _) = createEquations(false, false, false, false, syst, shared, comps, iuniqueEqIndex, {});
// generate also discrete equations, they might be introduced by wrapFunctionCalls
(columnEquations, _, uniqueEqIndex, _) = createEquations(false, false, true, false, syst, shared, comps, iuniqueEqIndex, {});
if Flags.isSet(Flags.JAC_DUMP2) then
print("analytical Jacobians -> created all SimCode equations for Matrix " + name + " time: " + realString(clock()) + "\n");
end if;
Expand Down

0 comments on commit 5a950a9

Please sign in to comment.