aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca@DEB.station> 2019-10-11 18:33:23 -0500
committerGravatar Luca Fedeli <luca@DEB.station> 2019-10-11 18:33:23 -0500
commitb1836808c49717b94d62da55ab408a06a0b1885c (patch)
treeb10b616fd5139785d79da2e1c91f972950ce3ede /Source/Particles/PhotonParticleContainer.cpp
parentc112b255691176db4c3e2528e987bedb054ec8f0 (diff)
parent46baf306dfa45a5a966452664d8f041e608711eb (diff)
downloadWarpX-b1836808c49717b94d62da55ab408a06a0b1885c.tar.gz
WarpX-b1836808c49717b94d62da55ab408a06a0b1885c.tar.zst
WarpX-b1836808c49717b94d62da55ab408a06a0b1885c.zip
merged with dev
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()
{