aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-09-24 15:17:12 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-09-24 15:17:12 -0700
commitf241d5e67d3b975b39aa58851bda814662130592 (patch)
treeb175d48e5b51a12e89a31b1554a59df30bb7b57f /Source/Particles/PhysicalParticleContainer.cpp
parent37e62ed5e384256699d442fc34c9e5e3c3b9a50a (diff)
downloadWarpX-f241d5e67d3b975b39aa58851bda814662130592.tar.gz
WarpX-f241d5e67d3b975b39aa58851bda814662130592.tar.zst
WarpX-f241d5e67d3b975b39aa58851bda814662130592.zip
Move temporary variables into function
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index dae723b3f..7e1dbe74a 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -989,8 +989,6 @@ PhysicalParticleContainer::Evolve (int lev,
FArrayBox filtered_Ex, filtered_Ey, filtered_Ez;
FArrayBox filtered_Bx, filtered_By, filtered_Bz;
- RealVector tmp;
- ParticleVector particle_tmp;
for (WarpXParIter pti(*this, lev); pti.isValid(); ++pti)
{
@@ -1096,8 +1094,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,
- tmp, particle_tmp);
+ pti, lev, current_masks, gather_masks, uxp, uyp, uzp, wp );
}
const long np_current = (cjx) ? nfine_current : np;