Skip to content

Commit

Permalink
Update lib/OrdinaryDiffEqCore/src/initdt.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Rackauckas <[email protected]>
  • Loading branch information
oscardssmith and ChrisRackauckas authored Oct 12, 2024
1 parent 84600ad commit f152556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OrdinaryDiffEqCore/src/initdt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f152556

Please sign in to comment.