diff options
author | 2020-01-31 13:12:22 -0800 | |
---|---|---|
committer | 2020-01-31 13:12:22 -0800 | |
commit | fad21f679dc5392a67750b66601c7f73923e4ca0 (patch) | |
tree | 89e2d0524da80ce8f67f8a6c96f876d08b08546f /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 090e78f41301022568ee7df7ecf5e3f4ee43c7e0 (diff) | |
download | WarpX-fad21f679dc5392a67750b66601c7f73923e4ca0.tar.gz WarpX-fad21f679dc5392a67750b66601c7f73923e4ca0.tar.zst WarpX-fad21f679dc5392a67750b66601c7f73923e4ca0.zip |
on second thought, implement this as a member function
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 4cc618854..ac55bb9a7 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -374,18 +374,8 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox) scale_fac = dx[0]*dx[1]/num_ppc; #endif - defineAllParticleTiles(*this); + defineAllParticleTiles(); -#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()); - tmp_particle_data.resize(finestLevel()+1); - // Create map entry if not there - tmp_particle_data[lev][index]; - } -#endif - MultiFab* cost = WarpX::getCosts(lev); const int nlevs = numLevels(); |