From 945453e5e9272e2eedcb16cfa6565393d2bfbf2e Mon Sep 17 00:00:00 2001 From: Jim Nutaro Date: Sat, 7 Jun 2014 20:38:14 +0000 Subject: [PATCH] Fixed problem with initializing if statements in the adevs backend git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21015 f25d12d1-65f4-0310-ae8a-bbce733d8d8e --- Compiler/Template/CodegenAdevs.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compiler/Template/CodegenAdevs.tpl b/Compiler/Template/CodegenAdevs.tpl index c361391f54f..764a6dac7a6 100644 --- a/Compiler/Template/CodegenAdevs.tpl +++ b/Compiler/Template/CodegenAdevs.tpl @@ -807,7 +807,7 @@ case SIMCODE(modelInfo = MODELINFO(vars = vars as SIMVARS(__))) then // Solve for any remaining unknowns solve_for_initial_unknowns(); selectStateVars(); - calc_vars(); + calc_vars(NULL,true); save_vars(); <%(vars.stateVars |> SIMVAR(__) => 'q[<%index%>]=<%cref(name)%>;') ;separator="\n"%> atInit = false;