Skip to content

Commit

Permalink
Stop bench timer on abort at new section in sim
Browse files Browse the repository at this point in the history
The benchmark timer was not stopped when the time integration was
aborted by the notification callback at the beginning of a new section.
  • Loading branch information
sleweke committed Aug 18, 2021
1 parent b4eebb6 commit 83eb8b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcadet/SimulatorImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,10 @@ namespace cadet
{
const double progress = (curT - static_cast<double>(_sectionTimes[0])) / (tEnd - static_cast<double>(_sectionTimes[0]));
if (!_notification->timeIntegrationSection(_curSec, curT, NVEC_DATA(_vecStateY), NVEC_DATA(_vecStateYdot), progress))
{
_lastIntTime = _timerIntegration.stop();
return;
}
}

// IDAS Step 5.2: Re-initialization of the solver
Expand Down

0 comments on commit 83eb8b5

Please sign in to comment.