Skip to content

Commit 102e447

Browse files
author
Michele Mesiti
committed
Add conv tests for a few ABM threaded methods
1 parent 69b7d16 commit 102e447

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lib/OrdinaryDiffEqAdamsBashforthMoulton/test/abm_convergence_tests.jl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,21 @@ testTol = 0.2
3737
sim106 = test_convergence(dts, prob, VCABM5())
3838
@test sim106.𝒪est[:l2]5 atol=testTol
3939
end
40+
41+
@testset "Explicit Solver Convergence Tests ($(["out-of-place", "in-place"][i])) - threaded " for i in 1:2
42+
prob = (ODEProblemLibrary.prob_ode_linear,
43+
ODEProblemLibrary.prob_ode_2Dlinear)[i]
44+
45+
sim5 = test_convergence(dts, prob, AB3(true))
46+
@test sim5.𝒪est[:l2]3 atol=testTol
47+
sim7 = test_convergence(dts, prob, AB4(true))
48+
@test sim7.𝒪est[:l2]4 atol=testTol
49+
sim9 = test_convergence(dts, prob, AB5(true))
50+
@test sim9.𝒪est[:l2]5 atol=testTol
51+
sim101 = test_convergence(dts, prob, VCAB3(true))
52+
@test sim101.𝒪est[:l2]3 atol=testTol
53+
sim103 = test_convergence(dts, prob, VCAB5(true))
54+
@test sim103.𝒪est[:l2]5 atol=testTol
55+
sim105 = test_convergence(dts, prob, VCABM4(true))
56+
@test sim105.𝒪est[:l2]4 atol=testTol
57+
end

0 commit comments

Comments
 (0)