Skip to content

Commit

Permalink
-fix in cpp template missing initial method in algloop system
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13657 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Oct 26, 2012
1 parent 288d72d commit d2995bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Compiler/Template/CodegenCpp.tpl
Expand Up @@ -4597,7 +4597,11 @@ template daeExpCall(Exp call, Context context, Text &preExp /*BUFP*/,
let eIndex = daeExp(index, contextOther, &preExp, &varDecls /*BUFD*/,simCode)
'_conditions1[<%eIndex%>]'
case CALL(path=IDENT(name="initial") ) then
'initial()'
match context
case ALGLOOP_CONTEXT(__)
then '_system->initial()'
else
'initial()'

case CALL(path=IDENT(name="DIVISION"),
expLst={e1, e2}) then
Expand Down

0 comments on commit d2995bb

Please sign in to comment.