Sampling and storing particle.xi
as a variable gives a different result to calling particle.xi
(in JIT mode)
#1689
Labels
particle.xi
as a variable gives a different result to calling particle.xi
(in JIT mode)
#1689
Parcels version
3.0.2
Description
In JIT mode, it looks like sampling the particle grid indices doesn't work as expected. All particles have the same grid indices, and these indices do not change in time with advection. In Scipy mode, things seem to work as expected (below, just change from
JITParticle
toScipyParticle
). Unfortunately my code takes too long to run in Scipy mode, so ideally we can get this working in JIT mode!I've provided a minimum working example based on the NEMO tutorial below.
Code sample
The text was updated successfully, but these errors were encountered: