diff options
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhotonParticleContainer.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index 39a5cd5d2..aba769ea3 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -28,7 +28,6 @@ PhotonParticleContainer::PhotonParticleContainer (AmrCore* amr_core, int ispecie const std::string& name) : PhysicalParticleContainer(amr_core, ispecies, name) { - ParmParse pp(species_name); #ifdef WARPX_QED @@ -36,6 +35,13 @@ PhotonParticleContainer::PhotonParticleContainer (AmrCore* amr_core, int ispecie if(m_do_qed) pp.query("do_qed_breit_wheeler", m_do_qed_breit_wheeler); + //If Breit Wheeler process is enabled, look for the target electron and positron + //species + if(m_do_qed_breit_wheeler){ + pp.get("qed_breit_wheeler_ele_product_species", m_qed_breit_wheeler_ele_product_name); + pp.get("qed_breit_wheeler_pos_product_species", m_qed_breit_wheeler_pos_product_name); + } + //Check for processes which do not make sense for photons bool test_quantum_sync = false; pp.query("do_qed_quantum_sync", test_quantum_sync); @@ -161,4 +167,5 @@ PhotonParticleContainer::EvolveOpticalDepth( } ); } + #endif |