Skip to content

Commit 6f2805d

Browse files
committed
fix(SimpleNonlinearSolve): incorrect argument ordering
1 parent 69d60a7 commit 6f2805d

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
@@ -139,7 +139,7 @@ function prepare_jacobian(prob, autodiff, fx, x)
139139
return DIExtras(DI.prepare_jacobian(prob.f, fx, autodiff, x, Constant(prob.p)))
140140
else
141141
x isa SArray && return DINoPreparation()
142-
return DI.prepare_jacobian(prob.f, autodiff, x, Constant(prob.p))
142+
return DIExtras(DI.prepare_jacobian(prob.f, autodiff, x, Constant(prob.p)))
143143
end
144144
end
145145

@@ -186,7 +186,7 @@ function compute_jacobian!!(J, prob, autodiff, fx, x, extras::DIExtras)
186186
end
187187
end
188188
if SciMLBase.isinplace(prob.f)
189-
DI.jacobian!(prob.f, J, fx, extras.prep, autodiff, x, Constant(prob.p))
189+
DI.jacobian!(prob.f, fx, J, extras.prep, autodiff, x, Constant(prob.p))
190190
else
191191
if ArrayInterface.can_setindex(J)
192192
DI.jacobian!(prob.f, J, extras.prep, autodiff, x, Constant(prob.p))

0 commit comments

Comments
 (0)