Skip to content

Commit 5bb1363

Browse files
committed
Add convergence tests for Ralston4
1 parent be84b43 commit 5bb1363

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/ode_tableau_convergence_tests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ for i = 1:2 # 1 = num, 2 = ExplicitRK
6363
sim = test_convergence(dts,prob,tabalg)
6464
@test abs(sim.𝒪est[:l∞]-4) < testTol
6565

66+
@test sum(i -> sqrt(residual_order_condition(constructRalston4(), i, +)), 1:4) < eps(1.0)
67+
tabalg = ExplicitRK(tableau=constructRalston4())
68+
sim = test_convergence(dts,prob,tabalg)
69+
@test abs(sim.𝒪est[:l∞]-4) < testTol
70+
6671
tabalg = ExplicitRK(tableau=constructSSPRK104())
6772
sim = test_convergence(dts,prob,tabalg)
6873
@test abs(sim.𝒪est[:l∞]-4) < testTol

0 commit comments

Comments
 (0)