From 588ef1dad873efef664687adb913ae1302dec6e5 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Thu, 18 Mar 2021 12:33:24 -0700 Subject: Use Clear Naming Standard for ParmParse Variables (#1809) --- Source/Particles/PhotonParticleContainer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/Particles/PhotonParticleContainer.cpp') 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!"); -- cgit v1.2.3