Skip to content

Commit

Permalink
updates for event handling c simulation runtime
Browse files Browse the repository at this point in the history
 - mostly cleaning and restructuring of the code
 - preparation for changing zero-crossing treatmeant



git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13538 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Oct 21, 2012
1 parent 1d5a279 commit 7e8ca4d
Show file tree
Hide file tree
Showing 12 changed files with 578 additions and 487 deletions.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/simulation_runtime.cpp
Expand Up @@ -693,7 +693,7 @@ int _main_SimulationRuntime(int argc, char**argv, DATA *data)
retVal = startNonInteractiveSimulation(argc, argv, data);

callExternalObjectDestructors(data);
DeinitializeDataStruc(data);
deInitializeDataStruc(data);
fflush(NULL);
}
else
Expand Down
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/solver/dopri45.c
Expand Up @@ -421,7 +421,7 @@ interpolation_control(const int dideventstep, double interpolationStep,
/* update all dependent variables */
functionODE(NULL);
functionAlgebraics(NULL);
SaveZeroCrossings();
saveZeroCrossings();

/* Emit interpolated data at the current time step */
sim_result_emit();
Expand Down

0 comments on commit 7e8ca4d

Please sign in to comment.