Merge pull request #555 from akva2/fix_assert_timestep

fixed: do not assert for positive timestep when simulation is finished
This commit is contained in:
Atgeirr Flø Rasmussen 2019-10-14 10:24:35 +02:00 committed by GitHub
commit 42e60438f8

View File

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