Skip to content

Commit

Permalink
fixed issue with c runtime due to usage of compressed sparse column/r…
Browse files Browse the repository at this point in the history
…ow matrix format
  • Loading branch information
qichenghua authored and OpenModelica-Hudson committed Jan 18, 2017
1 parent 0625e72 commit 04cd792
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -3342,7 +3342,9 @@ algorithm
(beqs, sources) = BackendDAEUtil.getEqnSysRhs(inEquationArray, inVars, SOME(inFuncs));
beqs = listReverse(beqs);
simJac = List.map1(jac, jacToSimjac, inVars);
simJac = List.sort(simJac,simJacCSRToCSC);
if (Config.simCodeTarget()=="Cpp") then
simJac = List.sort(simJac,simJacCSRToCSC);
end if;

then ({SimCode.SES_LINEAR(SimCode.LINEARSYSTEM(iuniqueEqIndex, mixedEvent, simVars, beqs, simJac, {}, NONE(), sources, 0), NONE())}, iuniqueEqIndex+1, itempvars);

Expand Down

0 comments on commit 04cd792

Please sign in to comment.