From e723d2f78b40dae713fabfebe15fdecbcd4e4296 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 24 Oct 2019 18:43:15 +0200 Subject: Checks if has_breit_wheeler() before calling DoBreitWheelerPti --- Source/Particles/PhotonParticleContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Particles/PhotonParticleContainer.cpp') 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 } -- cgit v1.2.3