Skip to content

Fixed locate particles #342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Apr 14, 2025
Merged

Conversation

rammann
Copy link
Contributor

@rammann rammann commented Mar 31, 2025

This pull request consists of several related changes.

  1. The most significant part is the changes to locateParticles() in src/Particle/ParticleSpatialLayout.hpp. This fixes Fix bug in modified locateParticles #273 and extends the original idea (veronica_report_v3_1.pdf) by making the mpi::rma::Window a memeber variable that is only initialized once per rank.

  2. The change in alpine/LoadBalancer.hpp allows disabling the loadbalancing completely by setting the threshold to 1.0 and addition of a timer to track initialization static IpplTimings::TimerRef initializeTimer = IpplTimings::getTimer("initialize")

rsammann and others added 24 commits March 10, 2025 15:07
@aaadelmann aaadelmann requested a review from srikrrish April 1, 2025 16:21
namespace ippl {

/*!
* We need this struct since Kokkos parallel_scan only accects
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in "accepts"

locate_type particleRanks("particles' MPI ranks", localnum);

/* The indices are the indices of the particles,
* the boolean values describe wheather the particle has left the current rank
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in "whether"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I've fixed the typos.

@s-mayani s-mayani merged commit 3ef549e into IPPL-framework:master Apr 14, 2025
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.

Fix bug in modified locateParticles
5 participants