Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Vern6 and Vern9 test errors #102

Merged
merged 1 commit into from
Feb 13, 2019
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
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