Skip to content

Commit

Permalink
- C# CodegenCSharp.tpl fix for residual functions generation
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13651 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
pavolpr committed Oct 26, 2012
1 parent 5ffae15 commit 4f3d59b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/Template/CodegenCSharp.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,7 @@ template functionExtraResidual(SimEqSystem equ, SimCode simCode) ::=
int ResidualFun<%index%>(int n, double[] xloc, double[] res, int iflag)
{
<% localRepresentationArrayDefines %>
<%crefs |> cr hasindex i0 => '<%cref(cr,simCode)%> = xloc[<%i0%>];' ;separator="\n"%>
<%eqs |> saeq as SES_SIMPLE_ASSIGN(__) =>
equation_(saeq, contextOther, simCode)
;separator="\n"
Expand Down

0 comments on commit 4f3d59b

Please sign in to comment.