diff --git a/Project.toml b/Project.toml index 790c4a91f..332f9b3e9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "NonlinearSolve" uuid = "8913a72c-1f9b-4ce2-8d82-65094dcecaec" authors = ["SciML"] -version = "1.1.0" +version = "1.1.1" [deps] ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2" diff --git a/src/jacobian.jl b/src/jacobian.jl index e8f6fb2f9..7661d8e55 100644 --- a/src/jacobian.jl +++ b/src/jacobian.jl @@ -32,7 +32,9 @@ function jacobian!(J::AbstractMatrix{<:Number}, cache) jac_config = cache.jac_config alg = cache.alg - if alg_autodiff(alg) + if SciMLBase.has_jac(f) + f.jac(J, x, cache.p) + elseif alg_autodiff(alg) forwarddiff_color_jacobian!(J, uf, x, jac_config) #cache.destats.nf += 1 else