Skip to content

Commit

Permalink
fix test failures on julia 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Aug 25, 2022
1 parent 398eaec commit 9155103
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/Fields/fielddiffeq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9155103

Please sign in to comment.