Skip to content

Commit 85560f4

Browse files
committed
Corrected a save/restore issue in the adevs backend
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9743 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent a64bd94 commit 85560f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/susan_codegen/SimCode/SimCodeAdevs.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ case MODELINFO(vars = SIMVARS(__)) then
456456
<<
457457
void <%lastIdentOfPath(name)%>::restore_vars()
458458
{
459-
$P$old$timeValue = timeValue;
459+
timeValue = $P$old$timeValue;
460460
<%(vars.stateVars |> SIMVAR(__) => '<%cref(name)%>=$P$old<%cref(name)%>;') ;separator="\n"%>
461461
<%(vars.derivativeVars |> SIMVAR(__) => '<%cref(name)%>=$P$old<%cref(name)%>;') ;separator="\n"%>
462462
<%(vars.algVars |> SIMVAR(__) => '<%cref(name)%>=$P$old<%cref(name)%>;') ;separator="\n"%>

0 commit comments

Comments
 (0)