Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/integrators/events.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const alg = MethodOfSteps(Tsit5(); constrained = false)
ts = findall(x -> x ≈ 2.6, sol1.t)
@test length(ts) == 2
@test sol1.u[ts[1]] == -sol1.u[ts[2]]
@test sol1(prevfloat(2.6);
continuity = :right)≈-sol1(prevfloat(2.6); continuity = :left) atol=1e-5
@test sol1(2.6;
continuity = :right)≈-sol1(2.6; continuity = :left) atol=1e-5

# fails on 32bit?!
# see https://github.com/SciML/DelayDiffEq.jl/pull/180
Expand All @@ -23,8 +23,8 @@ const alg = MethodOfSteps(Tsit5(); constrained = false)
ts = findall(x -> x ≈ 2.6, sol2.t)
@test length(ts) == 2
@test sol2.u[ts[1]] == -sol2.u[ts[2]]
@test sol2(prevfloat(2.6); continuity = :right) ≈
-sol2(prevfloat(2.6); continuity = :left)
@test sol2(2.6; continuity = :right) ≈
-sol2(2.6; continuity = :left)

sol3 = appxtrue(sol1, sol2)
@test sol3.errors[:L2] < 1.5e-2
Expand Down
Loading