Skip to content

Commit

Permalink
- fixed reinit in algorithm statements
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13757 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Nov 1, 2012
1 parent 71fc5e6 commit 37af139
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Compiler/Template/CodegenC.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5730,12 +5730,11 @@ template algStmtReinit(DAE.Statement stmt, Context context, Text &varDecls /*BUF
let expPart1 = daeExp(var, context, &preExp /*BUFC*/, &varDecls /*BUFD*/)
let expPart2 = daeExp(value, context, &preExp /*BUFC*/, &varDecls /*BUFD*/)
<<
if (DEBUG_STREAM(LOG_EVENTS)) {
INFO1(LOG_INIT, "reinit <%expPart1%> = %f", <%expPart1%>);
}
$P$PRE<%expPart1%> = <%expPart1%>;
<%preExp%>
<%expPart1%> = <%expPart2%>;
if (DEBUG_STREAM(LOG_EVENTS)) {
INFO1(LOG_EVENTS, "reinit <%expPart1%> = %f", <%expPart1%>);
}
data->simulationInfo.needToIterate = 1;
>>
end algStmtReinit;
Expand Down

0 comments on commit 37af139

Please sign in to comment.