Skip to content

Commit 48a0391

Browse files
committed
overload store!
zero the storage inplace
1 parent ef748c9 commit 48a0391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/differentials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ end
281281

282282
# The real reason we have this:
283283
accumulate!(Δ, ∂::InplaceableThunk) =.add!(Δ)
284-
284+
store!(Δ, ∂::InplaceableThunk) =.add!((Δ.*=false)) # zero i, then add to it.
285285

286286
"""
287287
NO_FIELDS

0 commit comments

Comments
 (0)