Skip to content

Commit abf12ab

Browse files
AlexanderSinnax3l
authored andcommitted
More SoA Fixes
1 parent d01b15c commit abf12ab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Src/Particle/AMReX_ParticleContainerI.H

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,9 +1090,8 @@ ParticleContainer_impl<ParticleType, NArrayReal, NArrayInt, Allocator>
10901090
::ReorderParticles (int lev, const MFIter& mfi, const index_type* permutations)
10911091
{
10921092
auto& ptile = ParticlesAt(lev, mfi);
1093-
auto& aos = ptile.GetArrayOfStructs();
1094-
const size_t np = aos.numParticles();
1095-
const size_t np_total = np + aos.numNeighborParticles();
1093+
const size_t np = ptile.numParticles();
1094+
const size_t np_total = np + ptile.numNeighborParticles();
10961095

10971096
if (memEfficientSort) {
10981097
if constexpr(!ParticleType::is_soa_particle) {

0 commit comments

Comments
 (0)