aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-10-31 11:42:42 +0100
committerGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-10-31 11:42:42 +0100
commitf01e1f4a772644a0b81d054a6057c8cf56203f7d (patch)
tree12fda114f69326ae46146fbeea9367f150b94dea /Source/Particles/PhysicalParticleContainer.cpp
parentecaedd97cb868a266971c81545c68930a2802126 (diff)
downloadWarpX-f01e1f4a772644a0b81d054a6057c8cf56203f7d.tar.gz
WarpX-f01e1f4a772644a0b81d054a6057c8cf56203f7d.tar.zst
WarpX-f01e1f4a772644a0b81d054a6057c8cf56203f7d.zip
Allow initialization tests without QED
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 2fa80a7fc..123f4eb8e 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1601,7 +1601,10 @@ PhysicalParticleContainer::PushPX(WarpXParIter& pti,
const Real m = this-> mass;
#ifdef WARPX_QED
- if(has_quantum_sync()){
+ //m_shr_p_qs_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_quantum_sync()&& m_shr_p_qs_engine->are_lookup_tables_initialized()){
Real* AMREX_RESTRICT p_tau =
pti.GetAttribs(particle_comps["tau"]).dataPtr();