Add alternate "delete/filter particles" functionality
The final purpose of this merge request is to have "delete particles" functionality. In practice, this requires some careful handling of particle indices and labels --- these are now two distinct numbers.
So here I add
- A method to output particle labels.
- A method to "filter" particles, i.e.:
- create a small list of interesting particles, that can be shared among MPI processes, then either
- delete particles on the list, or
- keep only particles on the list.
We already had a version of "keep only particles on the list" functionality, to enable field sampling on a small subset of particles. Now I tried to reverse the functionality to delete these particles.
The "delete" functionality is a bit more complicated, since labels need to be remembered.
I therefore added new "label" data to particle sets, and we need to test if the current implementation is working correctly. And we should see if it's possible to keep labels forever.
Merge request reports
Activity
requested review from @toba
assigned to @toba
@toba : please try to run the test yourself, and make the python code check if the labels are what they should be. relevant files are
TurTLE/test/test_particle_deleter.py
andTurTLE/test/particle_set/particle_deleter.?pp
.added 1 commit
- f7664fba - adding comparison to python deleting replication
added 46 commits
-
f7664fba...2d391cba - 45 commits from branch
develop
- 67746be4 - Merge branch 'develop' into feature/particle_index_output
-
f7664fba...2d391cba - 45 commits from branch
added 8 commits
-
351e2c9b...72caf58a - 7 commits from branch
develop
- cd49409d - Merge branch 'bugfix/compiler-issues' into feature/particle_index_output
-
351e2c9b...72caf58a - 7 commits from branch