Skip to content

Commit 3788a3f

Browse files
oscardssmithChrisRackauckas
authored andcommitted
fix scalar ext autodiff?
1 parent c3ffc29 commit 3788a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/NonlinearSolveBase/src/jacobian.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function construct_jacobian_cache(
107107
@assert !(autodiff isa AutoSparse) "`autodiff` cannot be `AutoSparse` for scalar \
108108
nonlinear problems."
109109
di_extras = DI.prepare_derivative(f, autodiff, u, Constant(prob.p))
110-
return JacobianCache(fu, f, fu, p, stats, autodiff, di_extras)
110+
return JacobianCache(u, f, fu, p, stats, autodiff, di_extras)
111111
end
112112

113113
@concrete mutable struct JacobianCache <: AbstractJacobianCache

0 commit comments

Comments
 (0)