diff options
Diffstat (limited to 'Source/Particles')
-rw-r--r-- | Source/Particles/LaserParticleContainer.cpp | 10 | ||||
-rw-r--r-- | Source/Particles/MultiParticleContainer.cpp | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp index c5fe3e4fb..3e573f33e 100644 --- a/Source/Particles/LaserParticleContainer.cpp +++ b/Source/Particles/LaserParticleContainer.cpp @@ -46,9 +46,9 @@ LaserParticleContainer::LaserParticleContainer (AmrCore* amr_core, int ispecies, std::transform(laser_type_s.begin(), laser_type_s.end(), laser_type_s.begin(), ::tolower); // Parse the properties of the antenna - pp_laser_name.getarr("position", m_position); - pp_laser_name.getarr("direction", m_nvec); - pp_laser_name.getarr("polarization", m_p_X); + getArrWithParser(pp_laser_name, "position", m_position); + getArrWithParser(pp_laser_name, "direction", m_nvec); + getArrWithParser(pp_laser_name, "polarization", m_p_X); pp_laser_name.query("pusher_algo", m_pusher_algo); getWithParser(pp_laser_name, "wavelength", m_wavelength); @@ -127,10 +127,10 @@ LaserParticleContainer::LaserParticleContainer (AmrCore* amr_core, int ispecies, m_laser_injection_box= Geom(0).ProbDomain(); { Vector<Real> lo, hi; - if (pp_laser_name.queryarr("prob_lo", lo)) { + if (queryArrWithParser(pp_laser_name, "prob_lo", lo, 0, AMREX_SPACEDIM)) { m_laser_injection_box.setLo(lo); } - if (pp_laser_name.queryarr("prob_hi", hi)) { + if (queryArrWithParser(pp_laser_name, "prob_hi", hi, 0, AMREX_SPACEDIM)) { m_laser_injection_box.setHi(hi); } } diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp index 4f6bdf05c..eb5293bee 100644 --- a/Source/Particles/MultiParticleContainer.cpp +++ b/Source/Particles/MultiParticleContainer.cpp @@ -117,13 +117,13 @@ MultiParticleContainer::ReadParameters () // then the values for the external B on particles must // be provided in the input file. if (m_B_ext_particle_s == "constant") - pp_particles.getarr("B_external_particle", m_B_external_particle); + getArrWithParser(pp_particles, "B_external_particle", m_B_external_particle); // if the input string for E_external on particles is "constant" // then the values for the external E on particles must // be provided in the input file. if (m_E_ext_particle_s == "constant") - pp_particles.getarr("E_external_particle", m_E_external_particle); + getArrWithParser(pp_particles, "E_external_particle", m_E_external_particle); // if the input string for B_ext_particle_s is // "parse_b_ext_particle_function" then the mathematical expression |