Skip to content

Commit

Permalink
fix for save pre variables
Browse files Browse the repository at this point in the history
  • Loading branch information
niklwors authored and OpenModelica-Hudson committed Mar 11, 2016
1 parent facc256 commit 757fe5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/Template/CodegenCpp.tpl
Expand Up @@ -11563,7 +11563,8 @@ case SES_SIMPLE_ASSIGN(__) then
case CREF_QUAL(ident = "$PRE") then
<<
//<%cref(componentRef, useFlatArrayNotation)%> = <%expPart%>;
_discrete_events->save( <%cref(componentRef, useFlatArrayNotation)%>);
//_discrete_events->save( <%cref(componentRef, useFlatArrayNotation)%>);
_discrete_events->pre(<%cref(componentRef, useFlatArrayNotation)%>)=<%expPart%>;
>>
else
match exp
Expand Down

0 comments on commit 757fe5f

Please sign in to comment.