Skip to content

Commit

Permalink
- Dump linear equation systems
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8871 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 8, 2011
1 parent 5e78c50 commit a33997d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Compiler/susan_codegen/SimCode/SimCodeDump.tpl
Expand Up @@ -73,7 +73,12 @@ template dumpEqs(list<SimEqSystem> eqs)
<%dumpElementSource(getStatementSource(stmt))%><%\n%>
>>
)
case e as SES_LINEAR(__) then "SES_LINEAR"
case e as SES_LINEAR(__) then
<<
linear: <%e.vars |> var => "var" ; separator = "," %>
<%beqs |> exp => printExpStr(exp) ; separator = "," %><%\n%>
<%simJac |> (i1,i2,eq) => '<%i1%>,<%i2%>: <%dumpEqs(listFill(eq,1))%>' ; separator = "\n" %><%\n%>
>>
case e as SES_NONLINEAR(__) then
<<
nonlinear: <%e.crefs |> cr => crefStr(cr) ; separator = "," %>
Expand Down

0 comments on commit a33997d

Please sign in to comment.