Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit aca04ad

Browse files
Update src/broyden.jl
1 parent 4a04a3c commit aca04ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/broyden.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function SciMLBase.solve(prob::NonlinearProblem,
1616
x = float(prob.u0)
1717
fₙ = f(x)
1818
T = eltype(x)
19-
J⁻¹ = ArrayInterfaceCore.zeromatrix(x)
19+
J⁻¹ = ArrayInterfaceCore.zeromatrix(x) + I
2020

2121
if SciMLBase.isinplace(prob)
2222
error("Broyden currently only supports out-of-place nonlinear problems")

0 commit comments

Comments
 (0)