Skip to content

Commit

Permalink
- improved LOG_EVENTS_V debug dump.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18321 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Nov 27, 2013
1 parent 27577e0 commit abf6fc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/c/simulation/solver/perform_simulation.c
Expand Up @@ -210,9 +210,9 @@ int prefixedName_performSimulation(DATA* data, SOLVER_INFO* solverInfo)
{
currectJumpState = ERROR_EVENTSEARCH;
INFO2(LOG_EVENTS, "%s event at time %g", eventType == 1 ? "time" : "state", solverInfo->currentTime);
INDENT(LOG_EVENTS);
INDENT(LOG_EVENTS); INDENT(LOG_EVENTS_V);
handleEvents(data, solverInfo->eventLst, &(solverInfo->currentTime), solverInfo);
RELEASE(LOG_EVENTS);
RELEASE(LOG_EVENTS); RELEASE(LOG_EVENTS_V);
currectJumpState = ERROR_SIMULATION;

solverInfo->didEventStep = 1;
Expand Down
4 changes: 4 additions & 0 deletions SimulationRuntime/c/simulation/solver/solver_main.c
Expand Up @@ -406,8 +406,12 @@ int finishSimulation(DATA* data, SOLVER_INFO* solverInfo, const char* outputVari
/* Last step with terminal()=true */
if(solverInfo->currentTime >= simInfo->stopTime && solverInfo->solverMethod != S_OPTIMIZATION)
{

INFO1(LOG_EVENTS_V, "terminal event at stop time %g", solverInfo->currentTime);
data->simulationInfo.terminal = 1;
INDENT(LOG_EVENTS_V);
updateDiscreteSystem(data);
RELEASE(LOG_EVENTS_V);

/* prevent emit if noeventemit flag is used */
if (!(omc_flag[FLAG_NOEVENTEMIT]))
Expand Down

0 comments on commit abf6fc4

Please sign in to comment.