diff options
author | 2021-05-13 13:17:12 -0700 | |
---|---|---|
committer | 2021-05-13 13:17:12 -0700 | |
commit | 0f49efc0d32297a0510979850d141c58a3e43c5d (patch) | |
tree | 37d37b02e4c20d63557ff8d467f80a86132867d5 /Source/Particles/LaserParticleContainer.cpp | |
parent | 9f28da17cdc42efbbe14bb21a3b1ab52ee556f68 (diff) | |
download | WarpX-0f49efc0d32297a0510979850d141c58a3e43c5d.tar.gz WarpX-0f49efc0d32297a0510979850d141c58a3e43c5d.tar.zst WarpX-0f49efc0d32297a0510979850d141c58a3e43c5d.zip |
Implemented query and getArrWithParser (#1936)
* Implemented query and getArrWithParser
* Updated parameters.rst regarding expressions for multiple floats
Diffstat (limited to 'Source/Particles/LaserParticleContainer.cpp')
-rw-r--r-- | Source/Particles/LaserParticleContainer.cpp | 10 |
1 files changed, 5 insertions, 5 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); } } |