Skip to content

Commit 4647f10

Browse files
reint-fischerreint-fischer
authored andcommitted
add kernel loop explanation to user guide
1 parent 83b4b3f commit 4647f10

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

docs/user_guide/examples/explanation_kernelloop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,4 @@ def KeepInOcean(particles, fieldset):
191191

192192
Kernel functions such as the ones above can then be added to the list of kernels in `pset.execute()`.
193193

194-
Note that these Kernels that control what to do with `particles.state` should typically be added at the _end_ of the Kernel list, because otherwise later Kernels may overwrite the `particles.state` or the `particle.dlon` variables.
194+
Note that these Kernels that control what to do with `particles.state` should typically be added at the _end_ of the Kernel list, because otherwise later Kernels may overwrite the `particles.state` or the `particles.dlon` variables.

docs/user_guide/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ examples/tutorial_delaystart.ipynb
4444
:caption: Write Kernels
4545
:titlesonly:
4646
47+
examples/kernelloop_explanation.md
4748
examples/tutorial_sampling.ipynb
4849
examples/tutorial_gsw_density.ipynb
4950
examples/tutorial_Argofloats.ipynb

0 commit comments

Comments
 (0)