Skip to content

Commit af3e59c

Browse files
committed
mv definition of cache array
1 parent 61b8ea9 commit af3e59c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/systems/clock_inference.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,12 @@ function generate_discrete_affect(
321321
end)
322322
end
323323

324-
cache = copy(p[$disc_range]) # Cache needed for atomic state update
325-
326324
# @show disc_to_cont_idxs
327325
# @show cont_to_disc_idxs
328326
# @show disc_range
329327
affect! = :(function (integrator, saved_values)
330328
@unpack u, p, t = integrator
329+
cache = p[$disc_range] # Cache needed for atomic state update
331330
c2d_obs = $cont_to_disc_obs
332331
d2c_obs = $disc_to_cont_obs
333332
$(

0 commit comments

Comments
 (0)