Skip to content

Commit 00b5b04

Browse files
committed
revert eps(typeof(t))
1 parent 565afb1 commit 00b5b04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/callbacks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ end
447447
end
448448

449449
# Evaluate condition slightly in future
450-
abst = integrator.tprev+integrator.tdir*max(abs(integrator.dt/10000),100*eps(typeof(integrator.t)))
450+
abst = integrator.tprev+integrator.tdir*max(abs(integrator.dt/10000),100*eps(integrator.t))
451451
tmp_condition = get_condition(integrator, callback, abst)
452452

453453
# Sometimes users may "switch off" the condition after crossing
@@ -525,7 +525,7 @@ end
525525
end
526526

527527
# Evaluate condition slightly in future
528-
abst = integrator.tprev+integrator.tdir*max(abs(integrator.dt/10000),100*eps(typeof(integrator.t)))
528+
abst = integrator.tprev+integrator.tdir*max(abs(integrator.dt/10000),100*eps(integrator.t))
529529
tmp_condition = get_condition(integrator, callback, abst)
530530

531531
# Sometimes users may "switch off" the condition after crossing

0 commit comments

Comments
 (0)