Skip to content

Commit 5b46c2d

Browse files
committed
Fix jac prototype
1 parent 6307028 commit 5b46c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jacobian.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function jacobian_caches(alg::AbstractNonlinearSolveAlgorithm, f, u, p,
7575
JacVec(uf, u; autodiff = alg.ad)
7676
else
7777
if has_analytic_jac
78-
iip ? undefmatrix(u) : nothing
78+
f.jac_prototype === nothing ? undefmatrix(u) : f.jac_prototype
7979
else
8080
f.jac_prototype === nothing ? init_jacobian(jac_cache) : f.jac_prototype
8181
end

0 commit comments

Comments
 (0)