aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2021-03-18 12:33:24 -0700
committerGravatar GitHub <noreply@github.com> 2021-03-18 12:33:24 -0700
commit588ef1dad873efef664687adb913ae1302dec6e5 (patch)
tree077488532705ea135dcfe516459b174cb63745b7 /Source/Particles/PhotonParticleContainer.cpp
parente5babce0e9b81d7950c073a0d2911ea148ccca66 (diff)
downloadWarpX-588ef1dad873efef664687adb913ae1302dec6e5.tar.gz
WarpX-588ef1dad873efef664687adb913ae1302dec6e5.tar.zst
WarpX-588ef1dad873efef664687adb913ae1302dec6e5.zip
Use Clear Naming Standard for ParmParse Variables (#1809)
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index 71d5488ac..cb9119a06 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -31,22 +31,22 @@ PhotonParticleContainer::PhotonParticleContainer (AmrCore* amr_core, int ispecie
const std::string& name)
: PhysicalParticleContainer(amr_core, ispecies, name)
{
- ParmParse pp(species_name);
+ ParmParse pp_species_name(species_name);
#ifdef WARPX_QED
//Find out if Breit Wheeler process is enabled
- pp.query("do_qed_breit_wheeler", m_do_qed_breit_wheeler);
+ pp_species_name.query("do_qed_breit_wheeler", m_do_qed_breit_wheeler);
//If Breit Wheeler process is enabled, look for the target electron and positron
//species
if(m_do_qed_breit_wheeler){
- pp.get("qed_breit_wheeler_ele_product_species", m_qed_breit_wheeler_ele_product_name);
- pp.get("qed_breit_wheeler_pos_product_species", m_qed_breit_wheeler_pos_product_name);
+ pp_species_name.get("qed_breit_wheeler_ele_product_species", m_qed_breit_wheeler_ele_product_name);
+ pp_species_name.get("qed_breit_wheeler_pos_product_species", m_qed_breit_wheeler_pos_product_name);
}
//Check for processes which do not make sense for photons
bool test_quantum_sync = false;
- pp.query("do_qed_quantum_sync", test_quantum_sync);
+ pp_species_name.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!");