Skip to content

Rethink Kernel loop in v4 #2084

@erikvansebille

Description

@erikvansebille

Parcels v3 introduced a revamped Kernel-loop for vectorial/commutable summing (see tutorial). However, it's a bit clunky because

  1. It requires a copy of the particle position (lon_nextloop, lat_nextloop, etc), straining memory
  2. The final position of the particle is by default not written
  3. Particle position (lon, lat, depth) is treated differently from other Particle variables
  4. The API may be confusing to users: why do they have to update particle_dlon rather than particle.lon?

Hence, it may be good to revisit the implementation of the Kernel loop in v4, keeping the advantages like vectorial summing but avoiding the downsides listed above

Metadata

Metadata

Projects

Status

Backlog

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions