Skip to content

Commit 15c4a2c

Browse files
ax3latmyersRemiLehetitoiride
authored
Restart w/ out-of-bounds Particles (#4783)
## Summary Seen on Frontier at 6000 nodes (of course): if the particle locator decides that a particle is out-of-bounds, it used an inconsistent level for the particle in restart. Now, it uses the currently loaded level consistently, with an invalid-marked tile. ## Additional background First seen by @titoiride Co-authored-by: @atmyers Co-authored-by: @RemiLehe Co-authored-by: @titoiride ## Checklist The proposed changes: - [x] fix a bug or incorrect behavior in AMReX - [ ] add new capabilities to AMReX - [ ] changes answers in the test suite to more than roundoff level - [ ] are likely to significantly affect the results of downstream AMReX users - [ ] include documentation in the code and/or rst files, if appropriate Co-authored-by: Andrew Myers <[email protected]> Co-authored-by: Remi Lehe <[email protected]> Co-authored-by: Davide Terzani <[email protected]>
1 parent 4159c72 commit 15c4a2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Src/Particle/AMReX_ParticleIO.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,10 +1050,10 @@ ParticleContainer_impl<ParticleType, NArrayReal, NArrayInt, Allocator, CellAssig
10501050
host_particles[lev][ind];
10511051

10521052
for (int j = 0; j < AMREX_SPACEDIM; j++) {
1053-
host_real_attribs[pld.m_lev][ind][j].push_back(ptemp.pos(j));
1053+
host_real_attribs[lev][ind][j].push_back(ptemp.pos(j));
10541054
}
10551055

1056-
host_idcpu[pld.m_lev][ind].push_back(ptemp.m_idcpu);
1056+
host_idcpu[lev][ind].push_back(ptemp.m_idcpu);
10571057

10581058
// read all other SoA
10591059
// add the real...

0 commit comments

Comments
 (0)