aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/MultiParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/MultiParticleContainer.cpp')
-rw-r--r--Source/Particles/MultiParticleContainer.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp
index 1f9bb8337..dacc7ba87 100644
--- a/Source/Particles/MultiParticleContainer.cpp
+++ b/Source/Particles/MultiParticleContainer.cpp
@@ -275,17 +275,17 @@ MultiParticleContainer::ReadParameters ()
ppq.get("ele_product_species", m_qed_schwinger_ele_product_name);
ppq.get("pos_product_species", m_qed_schwinger_pos_product_name);
#if (AMREX_SPACEDIM == 2)
- ppq.get("y_size",m_qed_schwinger_y_size);
+ getWithParser(ppq, "y_size",m_qed_schwinger_y_size);
#endif
ppq.query("threshold_poisson_gaussian", m_qed_schwinger_threshold_poisson_gaussian);
- ppq.query("xmin", m_qed_schwinger_xmin);
- ppq.query("xmax", m_qed_schwinger_xmax);
+ queryWithParser(ppq, "xmin", m_qed_schwinger_xmin);
+ queryWithParser(ppq, "xmax", m_qed_schwinger_xmax);
#if (AMREX_SPACEDIM == 3)
- ppq.query("ymin", m_qed_schwinger_ymin);
- ppq.query("ymax", m_qed_schwinger_ymax);
+ queryWithParser(ppq, "ymin", m_qed_schwinger_ymin);
+ queryWithParser(ppq, "ymax", m_qed_schwinger_ymax);
#endif
- ppq.query("zmin", m_qed_schwinger_zmin);
- ppq.query("zmax", m_qed_schwinger_zmax);
+ queryWithParser(ppq, "zmin", m_qed_schwinger_zmin);
+ queryWithParser(ppq, "zmax", m_qed_schwinger_zmax);
}
#endif
initialized = true;
@@ -828,7 +828,7 @@ void MultiParticleContainer::InitQuantumSync ()
//If specified, use a user-defined energy threshold for photon creaction
ParticleReal temp;
constexpr auto mec2 = PhysConst::c * PhysConst::c * PhysConst::m_e;
- if(pp.query("photon_creation_energy_threshold", temp)){
+ if(queryWithParser(pp, "photon_creation_energy_threshold", temp)){
temp *= mec2;
m_quantum_sync_photon_creation_energy_threshold = temp;
}
@@ -841,7 +841,7 @@ void MultiParticleContainer::InitQuantumSync ()
// considered for Synchrotron emission. If a lepton has chi < chi_min,
// the optical depth is not evolved and photon generation is ignored
amrex::Real qs_minimum_chi_part;
- pp.get("chi_min", qs_minimum_chi_part);
+ getWithParser(pp, "chi_min", qs_minimum_chi_part);
pp.query("lookup_table_mode", lookup_table_mode);
@@ -892,7 +892,7 @@ void MultiParticleContainer::InitBreitWheeler ()
// considered for pair production. If a photon has chi < chi_min,
// the optical depth is not evolved and photon generation is ignored
amrex::Real bw_minimum_chi_part;
- if(!pp.query("chi_min", bw_minimum_chi_part))
+ if(!queryWithParser(pp, "chi_min", bw_minimum_chi_part))
amrex::Abort("qed_bw.chi_min should be provided!");
pp.query("lookup_table_mode", lookup_table_mode);
@@ -947,7 +947,7 @@ MultiParticleContainer::QuantumSyncGenerateTable ()
// considered for Synchrotron emission. If a lepton has chi < chi_min,
// the optical depth is not evolved and photon generation is ignored
amrex::Real qs_minimum_chi_part;
- pp.get("chi_min", qs_minimum_chi_part);
+ getWithParser(pp, "chi_min", qs_minimum_chi_part);
if(ParallelDescriptor::IOProcessor()){
PicsarQuantumSyncCtrl ctrl;
@@ -960,11 +960,11 @@ MultiParticleContainer::QuantumSyncGenerateTable ()
//Minimun chi for the table. If a lepton has chi < tab_dndt_chi_min,
//chi is considered as if it were equal to tab_dndt_chi_min
- pp.get("tab_dndt_chi_min", ctrl.dndt_params.chi_part_min);
+ getWithParser(pp, "tab_dndt_chi_min", ctrl.dndt_params.chi_part_min);
//Maximum chi for the table. If a lepton has chi > tab_dndt_chi_max,
//chi is considered as if it were equal to tab_dndt_chi_max
- pp.get("tab_dndt_chi_max", ctrl.dndt_params.chi_part_max);
+ getWithParser(pp, "tab_dndt_chi_max", ctrl.dndt_params.chi_part_max);
//How many points should be used for chi in the table
pp.get("tab_dndt_how_many", ctrl.dndt_params.chi_part_how_many);
@@ -977,11 +977,11 @@ MultiParticleContainer::QuantumSyncGenerateTable ()
//Minimun chi for the table. If a lepton has chi < tab_em_chi_min,
//chi is considered as if it were equal to tab_em_chi_min
- pp.get("tab_em_chi_min", ctrl.phot_em_params.chi_part_min);
+ getWithParser(pp, "tab_em_chi_min", ctrl.phot_em_params.chi_part_min);
//Maximum chi for the table. If a lepton has chi > tab_em_chi_max,
//chi is considered as if it were equal to tab_em_chi_max
- pp.get("tab_em_chi_max", ctrl.phot_em_params.chi_part_max);
+ getWithParser(pp, "tab_em_chi_max", ctrl.phot_em_params.chi_part_max);
//How many points should be used for chi in the table
pp.get("tab_em_chi_how_many", ctrl.phot_em_params.chi_part_how_many);
@@ -989,7 +989,7 @@ MultiParticleContainer::QuantumSyncGenerateTable ()
//The other axis of the table is the ratio between the quantum
//parameter of the emitted photon and the quantum parameter of the
//lepton. This parameter is the minimum ratio to consider for the table.
- pp.get("tab_em_frac_min", ctrl.phot_em_params.frac_min);
+ getWithParser(pp, "tab_em_frac_min", ctrl.phot_em_params.frac_min);
//This parameter is the number of different points to consider for the second
//axis
@@ -1028,7 +1028,7 @@ MultiParticleContainer::BreitWheelerGenerateTable ()
// considered for pair production. If a photon has chi < chi_min,
// the optical depth is not evolved and photon generation is ignored
amrex::Real bw_minimum_chi_part;
- pp.get("chi_min", bw_minimum_chi_part);
+ getWithParser(pp, "chi_min", bw_minimum_chi_part);
if(ParallelDescriptor::IOProcessor()){
PicsarBreitWheelerCtrl ctrl;
@@ -1041,11 +1041,11 @@ MultiParticleContainer::BreitWheelerGenerateTable ()
//Minimun chi for the table. If a photon has chi < tab_dndt_chi_min,
//an analytical approximation is used.
- pp.get("tab_dndt_chi_min", ctrl.dndt_params.chi_phot_min);
+ getWithParser(pp, "tab_dndt_chi_min", ctrl.dndt_params.chi_phot_min);
//Maximum chi for the table. If a photon has chi > tab_dndt_chi_max,
//an analytical approximation is used.
- pp.get("tab_dndt_chi_max", ctrl.dndt_params.chi_phot_max);
+ getWithParser(pp, "tab_dndt_chi_max", ctrl.dndt_params.chi_phot_max);
//How many points should be used for chi in the table
pp.get("tab_dndt_how_many", ctrl.dndt_params.chi_phot_how_many);
@@ -1058,11 +1058,11 @@ MultiParticleContainer::BreitWheelerGenerateTable ()
//Minimun chi for the table. If a photon has chi < tab_pair_chi_min
//chi is considered as it were equal to chi_phot_tpair_min
- pp.get("tab_pair_chi_min", ctrl.pair_prod_params.chi_phot_min);
+ getWithParser(pp, "tab_pair_chi_min", ctrl.pair_prod_params.chi_phot_min);
//Maximum chi for the table. If a photon has chi > tab_pair_chi_max
//chi is considered as it were equal to chi_phot_tpair_max
- pp.get("tab_pair_chi_max", ctrl.pair_prod_params.chi_phot_max);
+ getWithParser(pp, "tab_pair_chi_max", ctrl.pair_prod_params.chi_phot_max);
//How many points should be used for chi in the table
pp.get("tab_pair_chi_how_many", ctrl.pair_prod_params.chi_phot_how_many);