aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index ca4dcc81b..5bd7eb372 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -89,7 +89,7 @@ PhotonParticleContainer::PushPX(WarpXParIter& pti,
);
#ifdef WARPX_QED
- DoBreitWheelerPti(pti, dt);
+ if(has_breit_wheeler()) DoBreitWheelerPti(pti, dt);
#endif
}