Skip to content

Commit

Permalink
-some minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RuedKamp committed Sep 3, 2015
1 parent 1a782bb commit 299d717
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -2817,7 +2817,8 @@ algorithm
(beqs, sources) = BackendDAEUtil.getEqnSysRhs(inEquationArray, inVars, SOME(inFuncs));
beqs = listReverse(beqs);
simJac = List.map1(jac, jacToSimjac, inVars);
//simJac = simJacCSRToCSC(simJac);
// simJac = simJacCSRToCSC(simJac);

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

// Time varying nonlinear jacobian. Non-linear system of equations.
Expand Down
4 changes: 2 additions & 2 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -4108,7 +4108,7 @@ match simCode
case e as RCONST(__) then match type case "sparse" then
<<
<%preExp%>
/*comment out again!*/__A(<%row%>,<%col%>)=<%expPart%>;
/*comment out again!*///__A(<%row%>,<%col%>)=<%expPart%>;
_AData[_indexValue[<%i0%>]] = <%expPart%>;
>>
else
Expand All @@ -4120,7 +4120,7 @@ match simCode
else match type case "sparse" then
<<
<%preExp%>
/*comment out again!*/__A(<%row%>,<%col%>)=<%expPart%>;
/*comment out again!*///__A(<%row%>,<%col%>)=<%expPart%>;
//_Ax[<%i0%>] = <%expPart%>;// to be commented in lateron
_AData[_indexValue[<%i0%>]] = <%expPart%>;
>>
Expand Down

0 comments on commit 299d717

Please sign in to comment.