-
Notifications
You must be signed in to change notification settings - Fork 168
Description
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