Skip to content

Commit

Permalink
isinplace use
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rs committed Sep 15, 2023
1 parent 8752556 commit ff524b0
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 @@ -192,7 +192,7 @@ end

function simple_jacobian(cache, x::AbstractArray{<:Number})
@unpack f, fu, p, prob = cache
if !get_iip(prob)
if !SciMLBase.isinplace(prob)
g = Base.Fix2(f, p)
return ForwardDiff.jacobian(g, x)

Check warning on line 197 in src/jacobian.jl

View check run for this annotation

Codecov / codecov/patch

src/jacobian.jl#L193-L197

Added lines #L193 - L197 were not covered by tests
else
Expand Down

0 comments on commit ff524b0

Please sign in to comment.