diff --git a/lib/SimpleNonlinearSolve/src/broyden.jl b/lib/SimpleNonlinearSolve/src/broyden.jl index ab4d313b9..49f53950a 100644 --- a/lib/SimpleNonlinearSolve/src/broyden.jl +++ b/lib/SimpleNonlinearSolve/src/broyden.jl @@ -16,7 +16,7 @@ function SciMLBase.solve(prob::NonlinearProblem, x = float(prob.u0) fₙ = f(x) T = eltype(x) - J⁻¹ = ArrayInterfaceCore.zeromatrix(x) + J⁻¹ = ArrayInterfaceCore.zeromatrix(x) + I if SciMLBase.isinplace(prob) error("Broyden currently only supports out-of-place nonlinear problems")