Skip to content

Support Global Particle ID constructors #870

@erikvansebille

Description

@erikvansebille

Currently, tracking a unique identifier of particles (the ID) is hardly possible. Some of the ID information is stored as class-static variable info (basically: every particle itself has a one static field called 'maxID' - which is unnecessarily), while this information is modified by each newly-created ParticleSet individually. Also, by time a lot of available IDs from deleted Particles remain unused, which means it is possible to reach the max. identifier number with long-running simulations that do a lot of particle removal and particle releases.

A base for a global ID generator can be found in #862, and it can be taken as a template or as inspiration for something similar in the master branch of Parcels.

Thanks to @CKehl for bringing this up

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions