Skip to content

Commit 8cb8ad8

Browse files
feat: add specialized observed for AbstractDDEProblem
1 parent a05c0c9 commit 8cb8ad8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/problems/dde_problems.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,14 @@ function DDEProblem(f::AbstractDDEFunction, args...; kwargs...)
259259
DDEProblem{isinplace(f)}(f, args...; kwargs...)
260260
end
261261

262+
function SymbolicIndexingInterface.observed(prob::AbstractDDEProblem, sym)
263+
return let hist = prob.h,
264+
rawfn = SymbolicIndexingInterface.observed(symbolic_container(prob), sym)
265+
266+
fn(u, p, t) = rawfn(u, hist, p, t)
267+
end
268+
end
269+
262270
"""
263271
$(TYPEDEF)
264272
"""

0 commit comments

Comments
 (0)