From 0f49efc0d32297a0510979850d141c58a3e43c5d Mon Sep 17 00:00:00 2001 From: David Grote Date: Thu, 13 May 2021 13:17:12 -0700 Subject: Implemented query and getArrWithParser (#1936) * Implemented query and getArrWithParser * Updated parameters.rst regarding expressions for multiple floats --- Source/Particles/LaserParticleContainer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/Particles/LaserParticleContainer.cpp') 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 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); } } -- cgit v1.2.3