Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Fix Cpp code generation for derivative functions of media, ticket:4600
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Nov 1, 2017
1 parent d01f3d6 commit 32ea34f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Compiler/Template/CodegenCpp.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13216,12 +13216,11 @@ template algStmtAssign(DAE.Statement stmt, Context context, Text &varDecls, SimC
<<

<%preExp%>
<% varLst |> var as TYPES_VAR(__) hasindex i1 fromindex 2 =>
<% varLst |> var as TYPES_VAR(__) hasindex i1 fromindex 1 =>
let re = daeExp(listGet(expLst,i1), context, &preExp, &varDecls,simCode , &extraFuncs , &extraFuncsDecl, extraFuncsNamespace, stateDerVectorName, useFlatArrayNotation)
'<%re%> = <%rec%>.<%var.name%>;'
'<%re%> = <%rec%>.<%crefStr(makeUntypedCrefIdent(var.name))%>;'
; separator="\n"
%>
Record = func;
>>
case STMT_ASSIGN(exp1=CREF(__)) then
let &preExp = buffer "" /*BUFD*/
Expand Down

0 comments on commit 32ea34f

Please sign in to comment.