aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-10-25 12:09:24 +0200
committerGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-10-25 12:09:24 +0200
commit06ff9be518f86d73b7fd8056676e9a6c49b83f08 (patch)
tree18302f92609a4d6101d9a8088312e08faa265a63 /Source/Particles/PhotonParticleContainer.cpp
parente723d2f78b40dae713fabfebe15fdecbcd4e4296 (diff)
parentd37100ff5f6eafd30167c463ca107dff10dbd9f4 (diff)
downloadWarpX-06ff9be518f86d73b7fd8056676e9a6c49b83f08.tar.gz
WarpX-06ff9be518f86d73b7fd8056676e9a6c49b83f08.tar.zst
WarpX-06ff9be518f86d73b7fd8056676e9a6c49b83f08.zip
Merge branch 'qed_bw_qs_factory_class' into qed_evolve_optical_depth
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index 5bd7eb372..ea55e04c6 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