Skip to content

Commit cea1ab3

Browse files
Merge pull request #645 from DanielVandH/patch-1
Remove references to undefined event_f
2 parents 91554e8 + 5c622c9 commit cea1ab3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/features/callback_functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ should always be positive, with an event occurring at 0.
347347
We thus want to check if the ball's height ever hits zero:
348348

349349
```@example callback4
350-
function condition(u,t,integrator) # Event when event_f(u,t) == 0
350+
function condition(u,t,integrator) # Event when condition(u,t,integrator) == 0
351351
u[1]
352352
end
353353
```
@@ -668,7 +668,7 @@ Our model is that, whenever the protein `X` gets to a concentration of 1, it
668668
triggers a cell division. So we check to see if any concentrations hit 1:
669669

670670
```@example callback5
671-
function condition(u,t,integrator) # Event when event_f(u,t) == 0
671+
function condition(u,t,integrator) # Event when condition(u,t,integrator) == 0
672672
1-maximum(u)
673673
end
674674
```
@@ -756,7 +756,7 @@ end
756756
where `u[1]` denotes `y`-coordinate, `u[2]` denotes velocity in `y`-direction, `u[3]` denotes `x`-coordinate and `u[4]` denotes velocity in `x`-direction. We will make a `VectorContinuousCallback` of length 2 - one for `x` axis collision, one for walls parallel to `y` axis.
757757

758758
```@example callback6
759-
function condition(out,u,t,integrator) # Event when event_f(u,t) == 0
759+
function condition(out,u,t,integrator) # Event when condition(out,u,t,integrator) == 0
760760
out[1] = u[1]
761761
out[2] = (u[3] - 10.0)u[3]
762762
end
@@ -782,4 +782,4 @@ p = 9.8
782782
prob = ODEProblem(f,u0,tspan,p)
783783
sol = solve(prob,Tsit5(),callback=cb,dt=1e-3,adaptive=false)
784784
using Plots; plot(sol,idxs=(1,3))
785-
```
785+
```

0 commit comments

Comments
 (0)