Skip to content

Commit

Permalink
Added state variable selection to initialization loop
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18125 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
smiz committed Nov 13, 2013
1 parent 090241e commit 07fc3f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/Template/CodegenAdevs.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,7 @@ case SIMCODE(modelInfo = MODELINFO(vars = vars as SIMVARS(__))) then
}
bound_params();
// Calculate new state variable derivatives and algebraic variables
selectStateVars();
calc_vars(NULL,true);
// Calculate the new value of the objective function
<%initialResidualEqns(residualEquations)%>
Expand Down

0 comments on commit 07fc3f5

Please sign in to comment.