Skip to content
Snippets Groups Projects
Verified Commit b7c04d2a authored by Liam Keegan's avatar Liam Keegan
Browse files

fix check that dt is not smaller than _min_step

parent 60248d60
No related branches found
No related tags found
1 merge request!25Resolve "Add simple adaptive timestepping"
Pipeline #29377 failed
......@@ -416,7 +416,7 @@ public:
logger().warn(
"Reducing step size: {}s -> {}s"_fmt, dt, dt * _decrease_factor);
dt = dt * _decrease_factor;
if (FloatCmp::lt<Time>(_min_step, dt))
if (FloatCmp::lt<Time>(dt, _min_step))
DUNE_THROW(MathError,
"Time step '" << dt
<< "' is less than the minimun allowed step '"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment