diff options
author | 2019-10-25 11:22:44 +0200 | |
---|---|---|
committer | 2019-10-25 11:22:44 +0200 | |
commit | 488c91478955cbf173e6fe5a27e6edaca72febc5 (patch) | |
tree | 8250037b8085d729a021e5a46be2a7bcfdeb432c /Source/Particles/PhotonParticleContainer.cpp | |
parent | 9920e58195ad4b75c14ee8fdf09dc6404c0f312c (diff) | |
download | WarpX-488c91478955cbf173e6fe5a27e6edaca72febc5.tar.gz WarpX-488c91478955cbf173e6fe5a27e6edaca72febc5.tar.zst WarpX-488c91478955cbf173e6fe5a27e6edaca72febc5.zip |
fix bug related to photon initialization
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhotonParticleContainer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index 3e678fb26..cf2ffbec4 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -45,9 +45,8 @@ void PhotonParticleContainer::InitData() { AddParticles(0); // Note - add on level 0 - if (maxLevel() > 0) { - Redistribute(); // We then redistribute - } + Redistribute(); // We then redistribute + } void |