Skip to content

Commit

Permalink
Split expanded and nested FIRK solvers
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikQQY committed Nov 10, 2024
1 parent b4739b1 commit f8a4926
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 4 additions & 5 deletions lib/BoundaryValueDiffEqAscher/test/ascher_basic_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions lib/BoundaryValueDiffEqFIRK/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8a4926

Please sign in to comment.