Skip to content

Commit 1441c4c

Browse files
committed
Fix spelling
1 parent baf6d07 commit 1441c4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/systems/callbacks.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ as well as the positive-edge `affect` and negative-edge `affect_neg` that apply
8484
By default `affect_neg = affect`; to only get rising edges specify `affect_neg = nothing`.
8585
8686
Assume without loss of generality that the equation is of the form `c(u,p,t) ~ 0`; we denote the integrator state as `i.u`.
87-
For simplicty, we define `prev_sign = sign(c(u[t-1], p[t-1], t-1))` and `cur_sign = sign(c(u[t], p[t], t))`.
87+
For compactness, we define `prev_sign = sign(c(u[t-1], p[t-1], t-1))` and `cur_sign = sign(c(u[t], p[t], t))`.
8888
A condition edge will be detected and the callback will be invoked iff `prev_sign * cur_sign <= 0`.
8989
Inter-sample condition activation is not guaranteed; for example if we use the dirac delta function as `c` to insert a
9090
sharp discontinuity between integrator steps (which in this example would not normally be identified by adaptivity) then the condition is not
91-
gauranteed to be triggered.
91+
guaranteed to be triggered.
9292
9393
Once detected the integrator will "wind back" through a root-finding process to identify the point when the condition became active; the method used
9494
is specified by `rootfind` from [`SciMLBase.RootfindOpt`](@ref). Multiple callbacks in the same system with different `rootfind` operations will be resolved
@@ -596,7 +596,7 @@ function generate_vector_rootfinding_callback(
596596
end
597597

598598
"""
599-
Compile a single continous callback affect function(s).
599+
Compile a single continuous callback affect function(s).
600600
"""
601601
function compile_affect_fn(cb, sys::AbstractODESystem, dvs, ps, kwargs)
602602
eq_aff = affects(cb)

0 commit comments

Comments
 (0)