We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d34a43 commit dbbab46Copy full SHA for dbbab46
lib/OrdinaryDiffEqCore/src/initdt.jl
@@ -8,8 +8,8 @@
8
oneunit_tType = oneunit(_tType)
9
dtmax_tdir = tdir * dtmax
10
11
- dtmin = nextfloat(integrator.opts.dtmin)
12
- smalldt = convert(_tType, oneunit_tType * 1 // 10^(6))
+ dtmin = nextfloat(max(integrator.opts.dtmin, eps(t)))
+ smalldt = max(dtmin, convert(_tType, oneunit_tType * 1 // 10^(6)))
13
14
if integrator.isdae
15
return tdir * max(smalldt, dtmin)
@@ -235,7 +235,7 @@ end
235
236
237
238
239
smalldt = convert(_tType, oneunit_tType * 1 // 10^(6))
240
241
0 commit comments