flow: fix the time held by the simulator object

This commit is contained in:
Andreas Lauser
2018-06-27 12:13:49 +02:00
parent 01c830656d
commit c794028bcf
2 changed files with 12 additions and 8 deletions

View File

@@ -77,7 +77,7 @@ AdaptiveSimulatorTimer& AdaptiveSimulatorTimer::operator++ ()
// set new time step (depending on remaining time)
if( 1.05 * dt_ > remaining ) {
dt_ = remaining;
// check max time step again and use half remaining if to large
// check max time step again and use half remaining if too large
if( dt_ > max_time_step_ ) {
dt_ = 0.5 * remaining;
}