Skip to content

Commit

Permalink
Update src/broyden.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jan 2, 2023
1 parent f0d69b0 commit ae9d417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SimpleNonlinearSolve/src/broyden.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ae9d417

Please sign in to comment.