diff options
author | 2019-09-16 10:52:34 +0200 | |
---|---|---|
committer | 2019-09-16 10:52:34 +0200 | |
commit | aa7a4b1f456e6c3a960791a75ac4731b74e41b18 (patch) | |
tree | 8f9921117f9d6d895b762bd47087845a359f501b /Source/Particles/PhotonParticleContainer.cpp | |
parent | 2cde7b74687cc2e3e1448da6d04ae3c128942168 (diff) | |
download | WarpX-aa7a4b1f456e6c3a960791a75ac4731b74e41b18.tar.gz WarpX-aa7a4b1f456e6c3a960791a75ac4731b74e41b18.tar.zst WarpX-aa7a4b1f456e6c3a960791a75ac4731b74e41b18.zip |
Added test for unphysical QED processes in PhotonParticleContainer.cpp
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhotonParticleContainer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index 71202c7fd..fb6064349 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -29,6 +29,14 @@ PhotonParticleContainer::PhotonParticleContainer (AmrCore* amr_core, int ispecie //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 } |