Skip to content

Change indexing approach for active_particles #850

@LasNikas

Description

@LasNikas

The current active_particles and eachparticle indexing approach is confusing.

Currently:
eachparticle contains both active and inactive particles
active_particles returns a view of only the active particles from eachparticle

We need to rethink this design:
If we don't need buffer particles, we shouldn't have to deal with the active/inactive logic at all.
Thus, eachparticle should only contain active particles by default
Add a separate iterator, e.g. each_active_and_inactive_particle(), for the rare cases where you need all particles. (is this ever happening?)

Metadata

Metadata

Assignees

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