aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-26 11:06:56 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-26 11:06:56 -0700
commit49dc1a600e30443c6d946689bfa80d3cd1091b1f (patch)
tree44978f07e396e265d4430cf1a0235035a32c4f10 /Source/Particles/PhysicalParticleContainer.cpp
parent11d362d949107d9c51a6a9771b05d62bc8e1cd8e (diff)
downloadWarpX-49dc1a600e30443c6d946689bfa80d3cd1091b1f.tar.gz
WarpX-49dc1a600e30443c6d946689bfa80d3cd1091b1f.tar.zst
WarpX-49dc1a600e30443c6d946689bfa80d3cd1091b1f.zip
add comment
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index df8dcf836..9169e6c1f 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -295,6 +295,7 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox)
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());