From 11777e80d1f5522c33b5985b780f6ab1dced9fed Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Wed, 23 Feb 2022 14:57:42 -0800 Subject: Re-order all particle quantities when doing MR partition (#2888) * Re-order all particle quantities when doing partition * Fix compilation --- Source/Particles/PhysicalParticleContainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Particles/PhysicalParticleContainer.cpp') diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index cbd048db6..db14c5a35 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1744,8 +1744,8 @@ PhysicalParticleContainer::Evolve (int lev, const Box& box = pti.validbox(); + // Extract particle data auto& attribs = pti.GetAttribs(); - auto& wp = attribs[PIdx::w]; auto& uxp = attribs[PIdx::ux]; auto& uyp = attribs[PIdx::uy]; @@ -1790,7 +1790,7 @@ PhysicalParticleContainer::Evolve (int lev, // and (thus) the `np-nfine_current`/`np-nfine_gather` last particles // deposit/gather in the buffer PartitionParticlesInBuffers( nfine_current, nfine_gather, np, - pti, lev, current_masks, gather_masks, uxp, uyp, uzp, wp ); + pti, lev, current_masks, gather_masks ); } const long np_current = (cjx) ? nfine_current : np; -- cgit v1.2.3