fixed: do not assert for positive timestep when simulation is finished

This commit is contained in:
Arne Morten Kvarving 2019-10-14 09:20:47 +02:00
parent 2c8d0a95fc
commit 29ced177c4

View File

@ -762,7 +762,7 @@ public:
else
// ask the problem to provide the next time step size
dt = std::min(maxTimeStepSize(), problem_->nextTimeStepSize());
assert(dt > 0);
assert(finished() || dt > 0);
setTimeStepSize(dt);
}
prePostProcessTimer_.stop();