Skip to content

Reconsider Kernel signature for Parcels v4 #2147

@erikvansebille

Description

@erikvansebille

In Parcels v3, a Kernel has the function signature

def v3Kernel(particle, fieldset, time)

However, as we’re working on vectorized kernels (#2122), the particle is actually a list of particles (a subset of the ParticleSet); so could perhaps better be renamed to particles.

Furthermore, the time does not mean very much anymore, because different particles can ‘live’ at different times. So better to drop it?

I thus propose to use the v4 release for a (breaking) API change to the Kernel signature, to

def v4Kernel(particles, fieldset)

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions