Skip to content

Commit

Permalink
Update src/derivative_wrappers.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Rackauckas <[email protected]>
  • Loading branch information
DhairyaLGandhi and ChrisRackauckas committed Jun 24, 2024
1 parent 673bd14 commit 0452e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/derivative_wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ function _vecjacobian!(dλ, y, λ, p, t, S::TS, isautojacvec::EnzymeVJP, dgrad,
#else
dup = if !(tmp2 isa DiffEqBase.NullParameters)
# tmp2 .= 0
tmp2 = Enzyme.make_zero(tmp2)
Enzyme.make_zero!(tmp2)
Enzyme.Duplicated(p, repack(tmp2))
else
Enzyme.Const(p)
Expand Down

0 comments on commit 0452e91

Please sign in to comment.