Skip to content

Commit 79895af

Browse files
authored
fix typo (#3591)
1 parent 04bcf38 commit 79895af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/model_setup/callbacks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ model = NonhydrostaticModel(grid=RectilinearGrid(size=(1, 1, 1), extent=(1, 1, 1
5656
5757
simulation = Simulation(model, Δt=1, stop_iteration=10)
5858
59-
function modify_tendecy!(model, params)
59+
function modify_tendency!(model, params)
6060
model.timestepper.Gⁿ[params.c] .+= params.δ
6161
return nothing
6262
end
6363
64-
simulation.callbacks[:modify_u] = Callback(modify_tendecy!, IterationInterval(1),
64+
simulation.callbacks[:modify_u] = Callback(modify_tendency!, IterationInterval(1),
6565
callsite = TendencyCallsite(),
6666
parameters = (c = :u, δ = 1))
6767

0 commit comments

Comments
 (0)