Skip to content

Commit

Permalink
Merge pull request #102 from JuliaDiffEq/haswell2
Browse files Browse the repository at this point in the history
Fix Vern6 and Vern9 test errors
  • Loading branch information
devmotion authored Feb 13, 2019
2 parents 66e270a + 89400ea commit 126ea79
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 126ea79

Please sign in to comment.