Skip to content

Commit 34c9152

Browse files
committed
fix error for discrete callbacks
1 parent 7ab6da5 commit 34c9152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/callbacks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ function _batch_condition(dcw::DiscreteCallbackWrapper)
502502
(u, t, integrator) -> begin
503503
us = PreallocationTools.get_tmp(ucache, u)
504504
obsf(u, integrator.p, t, us) # fills us inplace
505-
_u = SymbolicView(u, dcw.callback.condition.sym)
505+
_u = SymbolicView(us, dcw.callback.condition.sym)
506506
pv = view(integrator.p, pidxs)
507507
_p = SymbolicView(pv, dcw.callback.condition.psym)
508508
dcw.callback.condition.f(_u, _p, t)

0 commit comments

Comments
 (0)