Skip to content

Commit

Permalink
More SoA Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSinn authored and ax3l committed May 9, 2023
1 parent d01b15c commit abf12ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Src/Particle/AMReX_ParticleContainerI.H
Original file line number Diff line number Diff line change
Expand Up @@ -1090,9 +1090,8 @@ ParticleContainer_impl<ParticleType, NArrayReal, NArrayInt, Allocator>
::ReorderParticles (int lev, const MFIter& mfi, const index_type* permutations)
{
auto& ptile = ParticlesAt(lev, mfi);
auto& aos = ptile.GetArrayOfStructs();
const size_t np = aos.numParticles();
const size_t np_total = np + aos.numNeighborParticles();
const size_t np = ptile.numParticles();
const size_t np_total = np + ptile.numNeighborParticles();

if (memEfficientSort) {
if constexpr(!ParticleType::is_soa_particle) {
Expand Down

0 comments on commit abf12ab

Please sign in to comment.