From f8a4926b0306e6081679b03896c0c03a16df3964 Mon Sep 17 00:00:00 2001 From: Qingyu Qu <2283984853@qq.com> Date: Mon, 11 Nov 2024 00:53:56 +0800 Subject: [PATCH] Split expanded and nested FIRK solvers --- lib/BoundaryValueDiffEqAscher/test/ascher_basic_tests.jl | 9 ++++----- lib/BoundaryValueDiffEqFIRK/test/runtests.jl | 8 +++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/BoundaryValueDiffEqAscher/test/ascher_basic_tests.jl b/lib/BoundaryValueDiffEqAscher/test/ascher_basic_tests.jl index 107fda19..6eda3f02 100644 --- a/lib/BoundaryValueDiffEqAscher/test/ascher_basic_tests.jl +++ b/lib/BoundaryValueDiffEqAscher/test/ascher_basic_tests.jl @@ -56,7 +56,7 @@ for i in 1:4 for stage in (2, 3, 4, 5, 6, 7) sol = solve(prob1Arr[i], SOLVERS[stage], dt = 0.01) - SciMLBase.successful_retcode(sol) + @test SciMLBase.successful_retcode(sol) @test sol.errors[:final] < 1e-4 end end @@ -102,10 +102,9 @@ end SOLVERS = [alg(zeta = zeta2) for alg in (Ascher1, Ascher2, Ascher3, Ascher4, Ascher5, Ascher6, Ascher7)] for i in 1:2 - for stage in (1, 2, 3, 4, 5, 6, 7) + for stage in (2, 3, 4, 5, 6, 7) sol = solve(prob2Arr[i], SOLVERS[stage], dt = 0.01, abstol = 1e-2) - SciMLBase.successful_retcode(sol) - @test sol.errors + @test SciMLBase.successful_retcode(sol) end end end @@ -143,7 +142,7 @@ end for i in 1:2 for stage in (2, 3, 4, 5, 6, 7) sol = solve(prob3Arr[i], SOLVERS[stage], dt = 0.01) - SciMLBase.successful_retcode(sol) + @test SciMLBase.successful_retcode(sol) end end end diff --git a/lib/BoundaryValueDiffEqFIRK/test/runtests.jl b/lib/BoundaryValueDiffEqFIRK/test/runtests.jl index 9a56d82f..f810a595 100644 --- a/lib/BoundaryValueDiffEqFIRK/test/runtests.jl +++ b/lib/BoundaryValueDiffEqFIRK/test/runtests.jl @@ -2,15 +2,17 @@ using ReTestItems, BoundaryValueDiffEqFIRK, InteractiveUtils @info sprint(InteractiveUtils.versioninfo) -const GROUP = (get(ENV, "GROUP", "All")) +const GROUP = (get(ENV, "GROUP", "EXPANDED")) -if GROUP == "All" || GROUP == "EXPANDED" +@info GROUP + +if GROUP == "EXPANDED" @time "FIRK Expanded solvers" begin ReTestItems.runtests("expanded/", testitem_timeout = 3 * 60 * 60) end end -if GROUP == "All" || GROUP == "NESTED" +if GROUP == "NESTED" @time "FIRK Nested solvers" begin ReTestItems.runtests("nested/", testitem_timeout = 3 * 60 * 60) end