Skip to content

Commit 24b393c

Browse files
authored
Update src/GraphDynamics.jl
1 parent dab0dcf commit 24b393c

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/GraphDynamics.jl

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -302,29 +302,6 @@ end
302302

303303
function continuous_event_condition end
304304
function apply_continuous_event! end
305-
"""
306-
discrete_event_condition(subsystem, t, F)
307-
discrete_event_condition(connection_rule, t)
308-
309-
Check if a discrete event should trigger at time `t`.
310-
311-
Returns `true` if the event should trigger, `false` otherwise.
312-
313-
# Arguments
314-
- `subsystem`: The `Subsystem` to check for event conditions
315-
- `t`: Current time
316-
- `F`: A `ForeachConnectedSubsystem` callable for accessing connected subsystems
317-
- `connection_rule`: For connection events, the `ConnectionRule` to check
318-
319-
# Implementation
320-
Override this function for subsystems or connections with discrete events:
321-
```julia
322-
function GraphDynamics.discrete_event_condition(sys::Subsystem{Pendulum}, t, F)
323-
# Trigger event every 0.1 time units
324-
return t % 0.1 ≈ 0
325-
end
326-
```
327-
"""
328305
function discrete_event_condition end
329306
"""
330307
apply_discrete_event!(integrator, sview, pview, subsystem, F[, input])

0 commit comments

Comments
 (0)