Skip to content

Commit ca4cf05

Browse files
committed
fix: missing extras
1 parent d85a187 commit ca4cf05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SimpleNonlinearSolve/src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function compute_jacobian!!(_, prob, autodiff, fx, x::Number, ::AnalyticJacobian
152152
return prob.f.jvp(one(x), x, prob.p)
153153
end
154154
end
155-
function compute_jacobian!!(_, prob, autodiff, fx, x::Number, ::DIExtras)
155+
function compute_jacobian!!(_, prob, autodiff, fx, x::Number, extras::DIExtras)
156156
return DI.derivative(prob.f, extras.prep, autodiff, x, Constant(prob.p))
157157
end
158158
function compute_jacobian!!(_, prob, autodiff, fx, x::Number, ::DINoPreparation)
@@ -177,7 +177,7 @@ function compute_jacobian!!(J, prob, autodiff, fx, x, ::AnalyticJacobian)
177177
end
178178
end
179179

180-
function compute_jacobian!!(J, prob, autodiff, fx, x, ::DIExtras)
180+
function compute_jacobian!!(J, prob, autodiff, fx, x, extras::DIExtras)
181181
if J === nothing
182182
if SciMLBase.isinplace(prob.f)
183183
return DI.jacobian(prob.f, fx, extras.prep, autodiff, x, Constant(prob.p))

0 commit comments

Comments
 (0)