Skip to content
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

Fix out of bounds access to distance_to_eb #4831

Merged
merged 7 commits into from
Apr 10, 2024
Prev Previous commit
Next Next commit
Switch local back to 1.
  • Loading branch information
roelof-groenewald authored Apr 6, 2024
commit aee6b342352e86bf0d856b3c906b879359f3f4ec
2 changes: 1 addition & 1 deletion Source/Particles/WarpXParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ WarpXParticleContainer::AddNParticles (int lev, long n,
#endif

// Call (local) redistribute again to remove particles with invalid ids
Redistribute(lev, lev, 0, 0, true);
Redistribute(lev, lev, 0, 1, true);
}

/* \brief Current Deposition for thread thread_num
Expand Down
Loading