diff options
author | 2019-10-14 09:34:52 +0200 | |
---|---|---|
committer | 2019-10-14 09:34:52 +0200 | |
commit | 724c13fc79cc1492ba478663b2076be4bfc292d9 (patch) | |
tree | 07105e9e871dad770971c69df527122a6fa06636 /Source/Particles/PhotonParticleContainer.cpp | |
parent | cc96a2b5f466fbaafaa65be348dae57812c6f251 (diff) | |
parent | 3e3670639e3f57cdc9f1a43a6c69d7e8308f100d (diff) | |
download | WarpX-724c13fc79cc1492ba478663b2076be4bfc292d9.tar.gz WarpX-724c13fc79cc1492ba478663b2076be4bfc292d9.tar.zst WarpX-724c13fc79cc1492ba478663b2076be4bfc292d9.zip |
Merge branch 'classical_radiation_reaction' of github.com:lucafedeli88/WarpX into classical_radiation_reaction
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhotonParticleContainer.cpp | 20 |
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() { |