Skip to content

Commit

Permalink
Fixed problem with initializing if statements in the adevs backend
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21015 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
smiz committed Jun 7, 2014
1 parent b670f88 commit 945453e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Template/CodegenAdevs.tpl
Expand Up @@ -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;
Expand Down

0 comments on commit 945453e

Please sign in to comment.