-
Notifications
You must be signed in to change notification settings - Fork 369
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 new bug in pure soa communication #4337
Conversation
int num_real_comm_comp = 0; | ||
for (int i = AMREX_SPACEDIM + NStructReal; i < real_comp_mask.size(); ++i) { | ||
int comm_comps_start = 0; | ||
if constexpr (!PC::ParticleType::is_soa_particle) { | ||
comm_comps_start += AMREX_SPACEDIM + NStructReal; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more formatting :)
Src/Particle/AMReX_ParticleTile.H
Outdated
int array_start_index = 0; | ||
if constexpr (!ParticleType::is_soa_particle) { | ||
array_start_index = AMREX_SPACEDIM + NStructReal; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more formatting :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I upgraded to Ubuntu 24.04 and now my init.el
is b0rked.
Src/Particle/AMReX_ParticleTile.H
Outdated
int array_start_index = 0; | ||
if constexpr (!ParticleType::is_soa_particle) { | ||
array_start_index = AMREX_SPACEDIM + NStructReal; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more formatting :)
Src/Particle/AMReX_ParticleTile.H
Outdated
int array_start_index = 0; | ||
if constexpr (!ParticleType::is_soa_particle) { | ||
array_start_index = AMREX_SPACEDIM + NStructReal; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more formatting :)
Thanks @atmyers! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix!
Weekly update to latest AMReX. Weekly update to latest pyAMReX (no changes). Weekly update to latest PICSAR (no changes). ```console ./Tools/Release/updateAMReX.py ./Tools/Release/updatepyAMReX.py ./Tools/Release/updatePICSAR.py ``` This pulls in AMReX-Codes/amrex#4337, fixing regressions from #5669 (GPU segfaults on particle redistribute) Signed-off-by: Axel Huebl <[email protected]>
This fixes an issue introduced in PR #4333.
The proposed changes: