diff options
author | 2019-10-31 11:42:42 +0100 | |
---|---|---|
committer | 2019-10-31 11:42:42 +0100 | |
commit | f01e1f4a772644a0b81d054a6057c8cf56203f7d (patch) | |
tree | 12fda114f69326ae46146fbeea9367f150b94dea /Source/Particles/PhotonParticleContainer.cpp | |
parent | ecaedd97cb868a266971c81545c68930a2802126 (diff) | |
download | WarpX-f01e1f4a772644a0b81d054a6057c8cf56203f7d.tar.gz WarpX-f01e1f4a772644a0b81d054a6057c8cf56203f7d.tar.zst WarpX-f01e1f4a772644a0b81d054a6057c8cf56203f7d.zip |
Allow initialization tests without QED
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhotonParticleContainer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index afe697b7e..7e05656ef 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -88,7 +88,11 @@ PhotonParticleContainer::PushPX(WarpXParIter& pti, ); #ifdef WARPX_QED - if(has_breit_wheeler()) DoBreitWheeler(pti, dt); + //m_shr_p_bw_engine->are_lookup_tables_initialized() is necessary here if we want + //to perform just initialization tests of the optical depth without actually + //enabling QED effects (this requires lookup tables). + if(has_breit_wheeler() && m_shr_p_bw_engine->are_lookup_tables_initialized()) + DoBreitWheeler(pti, dt); #endif } |