Skip to content

Commit

Permalink
fix in cpp template initialize equations
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19530 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Mar 10, 2014
1 parent 9ea166d commit 5855763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -2714,7 +2714,7 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
let modelname = lastIdentOfPath(modelInfo.name)
let &varDecls = buffer ""
let &preExp= buffer ""
let initalgvars = initAlgloopvars(preExp,varDecls,modelInfo,simCode)
match eq
case SES_NONLINEAR(__) then
Expand Down Expand Up @@ -5127,7 +5127,7 @@ end dimension;
template arrayCrefCStr(ComponentRef cr,Context context)
::=
match context
case ALGLOOP_CONTEXT(__)
case ALGLOOP_CONTEXT(genInitialisation = false)
then << _system->_<%arrayCrefCStr2(cr)%> >>
else
'_<%arrayCrefCStr2(cr)%>'
Expand Down

0 comments on commit 5855763

Please sign in to comment.