From 6ce32bc5ab9891267971741055abf8d2a904857b Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Tue, 16 May 2023 08:24:01 -0400 Subject: [PATCH 1/3] only run sized matrix tests on v1.9+ It got an ldiv! added method which wasn't seen before. --- test/interface/sized_matrix_tests.jl | 34 +++++++++++++++------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/test/interface/sized_matrix_tests.jl b/test/interface/sized_matrix_tests.jl index d27c61d357..beec524f83 100644 --- a/test/interface/sized_matrix_tests.jl +++ b/test/interface/sized_matrix_tests.jl @@ -16,19 +16,21 @@ 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) -end +if VERSION >= v"1.9" + 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 \ No newline at end of file From b83dbfdc9b8b5424300b16312600dc0887bc9483 Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Tue, 16 May 2023 08:44:24 -0400 Subject: [PATCH 2/3] format --- test/interface/sized_matrix_tests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/interface/sized_matrix_tests.jl b/test/interface/sized_matrix_tests.jl index beec524f83..18b65c281c 100644 --- a/test/interface/sized_matrix_tests.jl +++ b/test/interface/sized_matrix_tests.jl @@ -33,4 +33,4 @@ if VERSION >= v"1.9" sol = solve(prob_giesekus, alg, saveat = 0.2, abstol = 1e-14, reltol = 1e-14) @test Array(sol) ≈ Array(solve_giesekus) end -end \ No newline at end of file +end From 83d92ab1a17e106bcc28d039dc8aab6bc6fe48c8 Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Tue, 16 May 2023 09:46:55 -0400 Subject: [PATCH 3/3] no solves if not v1.9 --- test/interface/sized_matrix_tests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/interface/sized_matrix_tests.jl b/test/interface/sized_matrix_tests.jl index 18b65c281c..d06753eb22 100644 --- a/test/interface/sized_matrix_tests.jl +++ b/test/interface/sized_matrix_tests.jl @@ -13,10 +13,10 @@ 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) 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(),