Skip to content

Commit

Permalink
Merge pull request #1945 from SciML/sizedmatrix
Browse files Browse the repository at this point in the history
only run sized matrix tests on v1.9+
  • Loading branch information
ChrisRackauckas authored May 16, 2023
2 parents fc87219 + 83d92ab commit f605546
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions test/interface/sized_matrix_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,24 @@ p_giesekus = [η0, τ, α]
σ0 = SizedMatrix{3, 3}([1.0 0.0 0.0; 0.0 2.0 0.0; 3.0 0.0 0.0])

prob_giesekus = ODEProblem(dudt!, σ0, (0.0, 2.0), p_giesekus)
solve_giesekus = solve(prob_giesekus, Rodas4(), saveat = 0.2, abstol = 1e-14,
reltol = 1e-14)

for alg in [
Rosenbrock23(),
Rodas4(),
Rodas4P(),
Rodas5(),
Rodas5P(),
Tsit5(),
Vern6(),
Vern7(),
Vern8(),
Vern9(),
DP5(),
]
sol = solve(prob_giesekus, alg, saveat = 0.2, abstol = 1e-14, reltol = 1e-14)
@test Array(sol) Array(solve_giesekus)
if VERSION >= v"1.9"
solve_giesekus = solve(prob_giesekus, Rodas4(), saveat = 0.2, abstol = 1e-14,
reltol = 1e-14)
for alg in [
Rosenbrock23(),
Rodas4(),
Rodas4P(),
Rodas5(),
Rodas5P(),
Tsit5(),
Vern6(),
Vern7(),
Vern8(),
Vern9(),
DP5(),
]
sol = solve(prob_giesekus, alg, saveat = 0.2, abstol = 1e-14, reltol = 1e-14)
@test Array(sol) Array(solve_giesekus)
end
end

0 comments on commit f605546

Please sign in to comment.