aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar RevathiJambunathan <revanathan@gmail.com> 2019-10-21 10:24:26 -0700
committerGravatar RevathiJambunathan <revanathan@gmail.com> 2019-10-21 10:24:26 -0700
commitee34b3e8cd231e5fa42cb841ec6ac16555e3a692 (patch)
treeff3d0cf3d9decf92890c131ad022a12caa60a4aa /Source/Particles/PhotonParticleContainer.cpp
parentd9daf257e26d503ac5d1c7c1bf8aaff4877ff7aa (diff)
parent80f2d85117bf99c256d416a3a21fb4618e82fe8b (diff)
downloadWarpX-ee34b3e8cd231e5fa42cb841ec6ac16555e3a692.tar.gz
WarpX-ee34b3e8cd231e5fa42cb841ec6ac16555e3a692.tar.zst
WarpX-ee34b3e8cd231e5fa42cb841ec6ac16555e3a692.zip
Merge branch 'dev' of https://github.com/ECP-WarpX/WarpX into SliceInLabFrameForBoostedSim
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index 4a75ec9f3..3c70a957f 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -21,7 +21,25 @@ using namespace amrex;
PhotonParticleContainer::PhotonParticleContainer (AmrCore* amr_core, int ispecies,
const std::string& name)
: PhysicalParticleContainer(amr_core, ispecies, name)
-{}
+{
+
+ ParmParse pp(species_name);
+
+#ifdef WARPX_QED
+ //IF do_qed is enabled, find out if Breit Wheeler process is enabled
+ if(do_qed)
+ pp.query("do_qed_breit_wheeler", do_qed_breit_wheeler);
+
+ //Check for processes which do not make sense for photons
+ bool test_quantum_sync;
+ pp.query("do_qed_quantum_sync", test_quantum_sync);
+ AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
+ test_quantum_sync == 0,
+ "ERROR: do_qed_quantum_sync can be 1 for species NOT listed in particles.photon_species only!");
+ //_________________________________________________________
+#endif
+
+}
void PhotonParticleContainer::InitData()
{