From 9155103c04f6671cf4a34d61b473c0b691840091 Mon Sep 17 00:00:00 2001 From: Simon Byrne Date: Wed, 24 Aug 2022 16:38:25 -0700 Subject: [PATCH] fix test failures on julia 1.8 --- test/Fields/fielddiffeq.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/Fields/fielddiffeq.jl b/test/Fields/fielddiffeq.jl index 905100160e..02f40e541d 100644 --- a/test/Fields/fielddiffeq.jl +++ b/test/Fields/fielddiffeq.jl @@ -66,7 +66,12 @@ end copyto!(J, α * LinearAlgebra.I) end - prob = ODEProblem(ODEFunction(f!), copy(y), (0.0, 1.0), 0.1) + prob = ODEProblem( + ODEFunction(f!; jac_prototype = zeros(length(y), length(y))), + copy(y), + (0.0, 1.0), + 0.1, + ) sol = solve(prob, SSPRK22(), dt = 0.01) sol = solve(prob, ImplicitEuler(), reltol = 1e-6)