We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a114379 commit d33b680Copy full SHA for d33b680
docs/user_guide/examples/explanation_kernelloop.md
@@ -78,12 +78,11 @@ Now we define a wind kernel that uses a forward Euler method to apply the wind f
78
79
```{code-cell}
80
def wind_kernel(particles, fieldset):
81
- dt_float = particles.dt / np.timedelta64(1, 's')
82
particles.dlon += (
83
- fieldset.UWind[particles] * dt_float
+ fieldset.UWind[particles] * particles.dt
84
)
85
particles.dlat += (
86
- fieldset.VWind[particles] * dt_float
+ fieldset.VWind[particles] * particles.dt
87
88
```
89
0 commit comments