Skip to content

Commit 7584e80

Browse files
committed
allow symbolic in Discrete condition
1 parent 00a736c commit 7584e80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/callbacks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,14 +412,14 @@ A callback that triggers at the first timestep that the conditions are satisfied
412412
The condition can be one of:
413413
- Δt::Real - periodic events with period Δt
414414
- ts::Vector{Real} - events trigger at these preset times given by `ts`
415-
- eqs::Vector{Equation} - events trigger when the condition evaluates to true
415+
- eqs::Vector{Symbolic} - events trigger when the condition evaluates to true
416416
417417
Arguments:
418418
- iv: The independent variable of the system. This must be specified if the independent variable appaers in one of the equations explicitly, as in x ~ t + 1.
419419
- alg_eqs: Algebraic equations of the system that must be satisfied after the callback occurs.
420420
"""
421421
struct SymbolicDiscreteCallback <: AbstractCallback
422-
conditions::Union{Number, Vector{<:Number}}
422+
conditions::Union{Number, Vector{<:Number}, Symbolic}
423423
affect::Union{Affect, Nothing}
424424
initialize::Union{Affect, Nothing}
425425
finalize::Union{Affect, Nothing}

0 commit comments

Comments
 (0)