Skip to content

Commit

Permalink
Fix jac prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Sep 13, 2023
1 parent 6307028 commit 5b46c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jacobian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function jacobian_caches(alg::AbstractNonlinearSolveAlgorithm, f, u, p,
JacVec(uf, u; autodiff = alg.ad)
else
if has_analytic_jac
iip ? undefmatrix(u) : nothing
f.jac_prototype === nothing ? undefmatrix(u) : f.jac_prototype

Check warning on line 78 in src/jacobian.jl

View check run for this annotation

Codecov / codecov/patch

src/jacobian.jl#L78

Added line #L78 was not covered by tests
else
f.jac_prototype === nothing ? init_jacobian(jac_cache) : f.jac_prototype
end
Expand Down

0 comments on commit 5b46c2d

Please sign in to comment.