Skip to content

Commit c5126a4

Browse files
Adding note to summing fields
1 parent 2c0e6b5 commit c5126a4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/user_guide/examples/explanation_kernelloop.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ Besides having commutable Kernels, the main advantage of this implementation is
4242

4343
Below is a simple example of some particles at the surface of the ocean. We create an idealised zonal wind flow that will "push" a particle that is already affected by the surface currents. The Kernel loop ensures that these two forces act at the same time and location.
4444

45+
```{note}
46+
Advecting particles by a combination of flow fields can be done with two separate kernels, as is shown below. However, it can also be done by summing the fields directly using `xarray` operations - provided the fields are defined on the same grid and have compatible dimensions. See the [summing fields tutorial](tutorial_summingfields.ipynb) for an example of that approach.
47+
```
48+
4549
```{code-cell}
4650
:tags: [hide-output]
4751
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)