From b6b86de50a9b8eec97f61ee109d1127c34463976 Mon Sep 17 00:00:00 2001 From: Shreyas Ekanathan Date: Tue, 19 Nov 2024 07:42:41 -0500 Subject: [PATCH] fix tests --- lib/OrdinaryDiffEqFIRK/test/ode_firk_tests.jl | 6 +++--- lib/OrdinaryDiffEqFIRKGenerator/test/ode_firk_tests.jl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/OrdinaryDiffEqFIRK/test/ode_firk_tests.jl b/lib/OrdinaryDiffEqFIRK/test/ode_firk_tests.jl index 72e0be40f4..cbbddf9467 100644 --- a/lib/OrdinaryDiffEqFIRK/test/ode_firk_tests.jl +++ b/lib/OrdinaryDiffEqFIRK/test/ode_firk_tests.jl @@ -17,10 +17,10 @@ sim21 = test_convergence(1 ./ 2 .^ (2.5:-1:0.5), prob_ode_2Dlinear, RadauIIA9()) prob_ode_linear_big = remake(prob_ode_linear, u0 = big.(prob_ode_linear.u0), tspan = big.(prob_ode_linear.tspan)) prob_ode_2Dlinear_big = remake(prob_ode_2Dlinear, u0 = big.(prob_ode_2Dlinear.u0), tspan = big.(prob_ode_2Dlinear.tspan)) -for i in [3, 5, 7], prob in [prob_ode_linear_big, prob_ode_2Dlinear_big] +for i in [5, 9, 13], prob in [prob_ode_linear_big, prob_ode_2Dlinear_big] dts = 1 ./ 2 .^ (4.25:-1:0.25) - sim21 = test_convergence(dts, prob, AdaptiveRadau(min_stages = i, max_stages = i)) - @test sim21.𝒪est[:final]≈ (2 * i - 1) atol=testTol + sim21 = test_convergence(dts, prob, AdaptiveRadau(min_order = i, max_order = i)) + @test sim21.𝒪est[:final]≈ i atol=testTol end # test adaptivity diff --git a/lib/OrdinaryDiffEqFIRKGenerator/test/ode_firk_tests.jl b/lib/OrdinaryDiffEqFIRKGenerator/test/ode_firk_tests.jl index d3c19ebbb5..9b2c5b6ca8 100644 --- a/lib/OrdinaryDiffEqFIRKGenerator/test/ode_firk_tests.jl +++ b/lib/OrdinaryDiffEqFIRKGenerator/test/ode_firk_tests.jl @@ -6,8 +6,8 @@ testTol = 0.5 prob_ode_linear_big = remake(prob_ode_linear, u0 = big.(prob_ode_linear.u0), tspan = big.(prob_ode_linear.tspan)) prob_ode_2Dlinear_big = remake(prob_ode_2Dlinear, u0 = big.(prob_ode_2Dlinear.u0), tspan = big.(prob_ode_2Dlinear.tspan)) -for i in [9], prob in [prob_ode_linear_big, prob_ode_2Dlinear_big] +for i in [17, 21], prob in [prob_ode_linear_big, prob_ode_2Dlinear_big] dts = 1 ./ 2 .^ (4.25:-1:0.25) - sim21 = test_convergence(dts, prob, AdaptiveRadau(min_stages = i, max_stages = i)) - @test sim21.𝒪est[:final]≈ (2 * i - 1) atol=testTol + sim21 = test_convergence(dts, prob, AdaptiveRadau(min_order = i, max_order = i)) + @test sim21.𝒪est[:final]≈ i atol=testTol end