Skip to content

Commit f152556

Browse files
Update lib/OrdinaryDiffEqCore/src/initdt.jl
Co-authored-by: Christopher Rackauckas <accounts@chrisrackauckas.com>
1 parent 84600ad commit f152556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OrdinaryDiffEqCore/src/initdt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ end
236236
dtmax_tdir = tdir * dtmax
237237

238238
dtmin = nextfloat(max(integrator.opts.dtmin, eps(t)))
239-
smalldt = convert(_tType, oneunit_tType * 1 // 10^(6))
239+
smalldt = max(dtmin, convert(_tType, oneunit_tType * 1 // 10^(6)))
240240

241241
if integrator.isdae
242242
return tdir * max(smalldt, dtmin)

0 commit comments

Comments
 (0)