Skip to content

Commit 491439a

Browse files
committed
-fixed an error concerning colored Jacobians
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22085 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 6022db6 commit 491439a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Compiler/Template/CodegenCpp.tpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import CodegenUtil.*;
77

88

99

10-
10+
11+
1112

1213

1314
template translateModel(SimCode simCode, Boolean useFlatArrayNotation) ::=
@@ -11626,7 +11627,7 @@ match matrixname
1162611627
case "A" then
1162711628
let indexrows = ( indexes |> indexrow hasindex index0 =>
1162811629
<<
11629-
i = _<%matrixname%>_sparsePattern_leadindex[<%crefWithoutIndexOperator(indexrow)%>$pDER<%matrixname%>$indexdiff] - <%listLength(indexes)%>;
11630+
i = _<%matrixname%>_sparsePattern_leadindex[<%crefWithoutIndexOperator(cref)%>$pDER<%matrixname%>$indexdiff] - <%listLength(indexes)%>;
1163011631
_<%matrixname%>_sparsePattern_index[i+<%index0%>] = <%crefWithoutIndexOperator(indexrow)%>$pDER<%matrixname%>$indexdiffed;
1163111632
>>
1163211633
;separator="\n")

0 commit comments

Comments
 (0)