From ae9d41774c4cdedd88a78d4be121d7170e087948 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Mon, 2 Jan 2023 17:44:26 -0500 Subject: [PATCH] Update src/broyden.jl --- lib/SimpleNonlinearSolve/src/broyden.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")