From f1525567ae5a86f41f10b820627dec9b146cf06f Mon Sep 17 00:00:00 2001 From: Oscar Smith Date: Sat, 12 Oct 2024 09:12:20 -0400 Subject: [PATCH] Update lib/OrdinaryDiffEqCore/src/initdt.jl Co-authored-by: Christopher Rackauckas --- lib/OrdinaryDiffEqCore/src/initdt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OrdinaryDiffEqCore/src/initdt.jl b/lib/OrdinaryDiffEqCore/src/initdt.jl index ea26dd6895..362694e26b 100644 --- a/lib/OrdinaryDiffEqCore/src/initdt.jl +++ b/lib/OrdinaryDiffEqCore/src/initdt.jl @@ -236,7 +236,7 @@ end dtmax_tdir = tdir * dtmax dtmin = nextfloat(max(integrator.opts.dtmin, eps(t))) - smalldt = convert(_tType, oneunit_tType * 1 // 10^(6)) + smalldt = max(dtmin, convert(_tType, oneunit_tType * 1 // 10^(6))) if integrator.isdae return tdir * max(smalldt, dtmin)