Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23781 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Dec 15, 2014
1 parent 60b2c68 commit 2c7c62c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions SimulationRuntime/cpp/Core/SimController/SimManager.cpp
Expand Up @@ -605,7 +605,7 @@ void SimManager::runSingleProcess()
for (; iter != _tStops[0].end(); ++iter)
{
endTime = iter->first;

// Setzen von Start- bzw. Endzeit und initial step size
_solver->setStartTime(startTime);
_solver->setEndTime(endTime);
Expand All @@ -621,15 +621,15 @@ void SimManager::runSingleProcess()
if (_dimtimeevent)
{
// Find all time events at the current time
while(abs(iter->first - endTime) <1e4*UROUND)
{
_timeeventcounter[iter->second]++;
iter++;
}
// set the iterator back to the current end time
iter--;
_timeevent_system->handleTimeEvent(_timeeventcounter);
while(abs(iter->first - endTime) <1e4*UROUND)
{
_timeeventcounter[iter->second]++;
iter++;
}
// set the iterator back to the current end time
iter--;

_timeevent_system->handleTimeEvent(_timeeventcounter);
_cont_system->evaluateAll(IContinuous::CONTINUOUS); // vxworksupdate
_event_system->getZeroFunc(zeroVal_new);
for (int i = 0; i < _dimZeroFunc; i++)
Expand All @@ -638,8 +638,8 @@ void SimManager::runSingleProcess()
//reset time-events
_timeevent_system->handleTimeEvent(_timeeventcounter);
}
user_stop = (_solver->getSolverStatus() & ISolver::USER_STOP);

user_stop = (_solver->getSolverStatus() & ISolver::USER_STOP);
if (user_stop)
break;
} // end for time events
Expand Down

0 comments on commit 2c7c62c

Please sign in to comment.