aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2021-02-01 20:12:33 +0100
committerGravatar GitHub <noreply@github.com> 2021-02-01 11:12:33 -0800
commita3c21696712d1b824d022dcc81ad9bda2bce3cb5 (patch)
treed7930af8894424c033f5a93882ede5a19d9a7ea9 /Source/Particles/PhysicalParticleContainer.cpp
parentdfe8b3edfebfac5fe2ead62034592902a47c5c13 (diff)
downloadWarpX-a3c21696712d1b824d022dcc81ad9bda2bce3cb5.tar.gz
WarpX-a3c21696712d1b824d022dcc81ad9bda2bce3cb5.tar.zst
WarpX-a3c21696712d1b824d022dcc81ad9bda2bce3cb5.zip
Remove redundant "do_qed" option in inputfile (#1667)
* removed redundant do_qed option in inputfile * fixed bug
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 8f9ad2e7c..108f4bd30 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -146,23 +146,18 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp
//_____________________________
#ifdef WARPX_QED
- pp.query("do_qed", m_do_qed);
- if(m_do_qed){
- //If do_qed is enabled, find out if Quantum Synchrotron process is enabled
- pp.query("do_qed_quantum_sync", m_do_qed_quantum_sync);
- if (m_do_qed_quantum_sync)
- AddRealComp("optical_depth_QSR");
- pp.query("do_qed_breit_wheeler", m_do_qed_breit_wheeler);
- if (m_do_qed_breit_wheeler)
- AddRealComp("optical_depth_BW");
- }
+ pp.query("do_qed_quantum_sync", m_do_qed_quantum_sync);
+ if (m_do_qed_quantum_sync)
+ AddRealComp("optical_depth_QSR");
+
+ pp.query("do_qed_breit_wheeler", m_do_qed_breit_wheeler);
+ if (m_do_qed_breit_wheeler)
+ AddRealComp("optical_depth_BW");
if(m_do_qed_quantum_sync){
pp.get("qed_quantum_sync_phot_product_species",
m_qed_quantum_sync_phot_product_name);
}
-
-
#endif
// Get Galilean velocity