Skip to content

Commit

Permalink
Update ode_firk_tests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Nov 17, 2024
1 parent f0268a4 commit 825031d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/OrdinaryDiffEqFIRKGenerator/test/ode_firk_tests.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
using OrdinaryDiffEqFIRK, OrdinaryDiffEqFIRKGenerator, DiffEqDevTools, Test, LinearAlgebra
import ODEProblemLibrary: prob_ode_linear_big, prob_ode_2Dlinear_big
import ODEProblemLibrary: prob_ode_linear, prob_ode_2Dlinear

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]
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
end
end

0 comments on commit 825031d

Please sign in to comment.