Skip to content

Commit c975424

Browse files
committed
Updates to the sparse FMI generator
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23573 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent cc2791e commit c975424

File tree

2 files changed

+116
-874
lines changed

2 files changed

+116
-874
lines changed

Compiler/Template/CodegenAdevs.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,11 @@ case SES_LINEAR(__) then
14551455
let expPart = daeExp(exp, context, &preExp /*BUFC*/, &varDecls /*BUFD*/)
14561456
'<%preExp%><%bname%>[<%i0%>] = <%expPart%>;'
14571457
;separator="\n"%>
1458+
<%residual |> exp hasindex i0 =>
1459+
let &preExp = buffer "" /*BUFD*/
1460+
let expPart = equation_(exp, context, &varDecls /*BUFD*/)
1461+
'<%preExp%><%bname%>[<%i0%>] = <%expPart%>;'
1462+
;separator="\n"%>
14581463
GETRF<%mixedPostfix%>(<%aname%>,<%size%>,<%pname%>);
14591464
GETRS<%mixedPostfix%>(<%aname%>,<%size%>,<%pname%>,<%bname%>);
14601465
<%vars |> SIMVAR(__) hasindex i0 => '<%cref(name)%> = <%bname%>[<%i0%>];' ;separator="\n"%>

0 commit comments

Comments
 (0)