Skip to content

Generalize PicManager for multiple particle containers#471

Draft
rammann wants to merge 1 commit intoIPPL-framework:masterfrom
rammann:multibunch
Draft

Generalize PicManager for multiple particle containers#471
rammann wants to merge 1 commit intoIPPL-framework:masterfrom
rammann:multibunch

Conversation

@rammann
Copy link
Contributor

@rammann rammann commented Feb 20, 2026

This PR generalizes the PicManager class to allow for multiple particle containers.

Changes:

  • We now additionally store a vector of shared_ptrs to the particle containers.
std::vector<std::shared_ptr<pc>> pcontainers_m;
  • Functions to get, set and add new particle containers to the PicManager
std::shared_ptr<pc> getParticleContainer(size_t i)
std::shared_ptr<pc> getParticleContainer(size_t i)
size_t addParticleContainer(std::shared_ptr<pc> pcontainer)

Backwards compatibility

TODO

How does this affect load balancing

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant