aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2020-01-31 12:53:58 -0800
committerGravatar Andrew Myers <atmyers2@gmail.com> 2020-01-31 12:53:58 -0800
commit090e78f41301022568ee7df7ecf5e3f4ee43c7e0 (patch)
tree94f8ead93d6e431407019d202027be80f701351d /Source/Particles/PhysicalParticleContainer.cpp
parent58e64aafe0103b6644048d7480a3e62fe01bd5cb (diff)
downloadWarpX-090e78f41301022568ee7df7ecf5e3f4ee43c7e0.tar.gz
WarpX-090e78f41301022568ee7df7ecf5e3f4ee43c7e0.tar.zst
WarpX-090e78f41301022568ee7df7ecf5e3f4ee43c7e0.zip
helper function for defining all particle tiles
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 2891cada3..4cc618854 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -374,17 +374,15 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox)
scale_fac = dx[0]*dx[1]/num_ppc;
#endif
+ defineAllParticleTiles(*this);
+
#ifdef _OPENMP
// First touch all tiles in the map in serial
for (MFIter mfi = MakeMFIter(lev); mfi.isValid(); ++mfi) {
auto index = std::make_pair(mfi.index(), mfi.LocalTileIndex());
- GetParticles(lev)[index];
tmp_particle_data.resize(finestLevel()+1);
// Create map entry if not there
tmp_particle_data[lev][index];
- if ( (NumRuntimeRealComps()>0) || (NumRuntimeIntComps()>0) ) {
- DefineAndReturnParticleTile(lev, mfi.index(), mfi.LocalTileIndex());
- }
}
#endif