From 29ced177c4b1bce88e2fc11aca423f2bcb349e11 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 14 Oct 2019 09:20:47 +0200 Subject: [PATCH] fixed: do not assert for positive timestep when simulation is finished --- opm/models/utils/simulator.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/models/utils/simulator.hh b/opm/models/utils/simulator.hh index a0d013038..2ca1e4077 100644 --- a/opm/models/utils/simulator.hh +++ b/opm/models/utils/simulator.hh @@ -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();