Skip to content

Commit

Permalink
Revert "fix for clock ticks at end time in cpp runtime"
Browse files Browse the repository at this point in the history
This reverts commit f67918e.
  • Loading branch information
niklwors authored and niwokr committed Jun 23, 2016
1 parent df84bca commit a25d3fd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions SimulationRuntime/cpp/Solver/CVode/CVode.cpp
Expand Up @@ -614,14 +614,7 @@ void Cvode::CVodeCore()
//Solver has finished calculation - calculate the final values
_continuous_system->setContinuousStates(NV_DATA_S(_CV_y));
_continuous_system->evaluateAll(IContinuous::CONTINUOUS);
//check for state events at end time ( it is needed by clock ticks at end time. It is not needed anymore if the clock's treated again as time events later)
_event_system->getZeroFunc(_zeroVal);
for (int i = 0; i < _dimZeroFunc; i++)
_events[i] = _zeroVal[i]<0.0;
_mixed_system->handleSystemEvents(_events);


if(writeOutput)
if(writeOutput)
writeToFile(0, _tEnd, _h);

_accStps += _locStps;
Expand Down

0 comments on commit a25d3fd

Please sign in to comment.