Skip to content

Commit

Permalink
Fix #97
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Feb 12, 2019
1 parent 66e270a commit 89400ea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/lazy_interpolants.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include("common.jl")
@testset "simple problems" begin
prob_inplace = prob_dde_1delay
prob_notinplace = prob_dde_1delay_scalar_notinplace
ts = 0:0.1:10

# Vern6
@testset "Vern6" begin
Expand All @@ -15,7 +16,9 @@ include("common.jl")

sol2 = solve(prob_notinplace, MethodOfSteps(Vern6()))

@test sol.t sol2.t && sol[1, :] sol2.u
# fails due to floating point issues on Haswell CPUs: https://github.com/JuliaDiffEq/DelayDiffEq.jl/issues/97
# @test sol.t ≈ sol2.t && sol[1, :] ≈ sol2.u
@test sol(ts, idxs=1) sol2(ts) atol = 1e-8
end

# Vern7
Expand Down Expand Up @@ -54,7 +57,9 @@ include("common.jl")

sol2 = solve(prob_notinplace, MethodOfSteps(Vern9()))

@test sol.t sol2.t && sol[1, :] sol2.u
# fails due to floating point issues on Haswell CPUs: https://github.com/JuliaDiffEq/DelayDiffEq.jl/issues/97
# @test sol.t ≈ sol2.t && sol[1, :] ≈ sol2.u
@test sol(ts, idxs=1) sol2(ts) atol = 1e-12
end
end

Expand Down

0 comments on commit 89400ea

Please sign in to comment.