You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/systems/callbacks.jl
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -84,11 +84,11 @@ as well as the positive-edge `affect` and negative-edge `affect_neg` that apply
84
84
By default `affect_neg = affect`; to only get rising edges specify `affect_neg = nothing`.
85
85
86
86
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))`.
88
88
A condition edge will be detected and the callback will be invoked iff `prev_sign * cur_sign <= 0`.
89
89
Inter-sample condition activation is not guaranteed; for example if we use the dirac delta function as `c` to insert a
90
90
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.
92
92
93
93
Once detected the integrator will "wind back" through a root-finding process to identify the point when the condition became active; the method used
94
94
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(
596
596
end
597
597
598
598
"""
599
-
Compile a single continous callback affect function(s).
599
+
Compile a single continuous callback affect function(s).
0 commit comments