Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,9 @@ DiscreteCallback(condition, affect!;
- `condition`: This is a function `condition(u,t,integrator)` for declaring when
the callback should be used. A callback is initiated if the condition evaluates
to `true`. See the [Integrator Interface](@ref integrator) documentation for information about `integrator`.

+ `affect!`: This is the function `affect!(integrator)` where one is allowed to
modify the current state of the integrator. For more information on what can
be done, see the [Integrator Interface](@ref integrator) manual page.

- `affect!`: This is the function `affect!(integrator)` where one is allowed to
modify the current state of the integrator. For more information on what can
be done, see the [Integrator Interface](@ref integrator) manual page.
- `save_positions`: Boolean tuple for whether to save before and after the `affect!`.
This saving will occur just before and after the event, only at event times, and
does not depend on options like `saveat`, `save_everystep`, etc. (i.e. if
Expand Down