From 01d5b3027fb69bd21c18eae6d0da6cf850936098 Mon Sep 17 00:00:00 2001 From: Timo Koch <timokoch@math.uio.no> Date: Wed, 26 Jul 2023 07:43:35 +0000 Subject: [PATCH] [timeloop] use lower eps for small dt warning --- dumux/common/timeloop.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumux/common/timeloop.hh b/dumux/common/timeloop.hh index 190ff9e1bb..7975ffe97c 100644 --- a/dumux/common/timeloop.hh +++ b/dumux/common/timeloop.hh @@ -247,7 +247,7 @@ public: { using std::min; timeStepSize_ = min(dt, maxTimeStepSize()); - if (!finished() && Dune::FloatCmp::le(timeStepSize_, 0.0, baseEps_*(endTime_ - startTime_))) + if (!finished() && Dune::FloatCmp::le(timeStepSize_, 0.0, 1e-4*baseEps_*(endTime_ - startTime_))) std::cerr << Fmt::format("You have set a very small timestep size (dt = {:.5g}).", timeStepSize_) << " This might lead to numerical problems!\n"; } -- GitLab