diff options
Diffstat (limited to 'Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp')
-rw-r--r-- | Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp index e7dc795a5..b795174d2 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp @@ -8,6 +8,7 @@ #include "Laser/LaserProfiles.H" #include "Utils/WarpX_Complex.H" #include "Utils/WarpXConst.H" +#include "Utils/WarpXUtil.H" #include <cmath> @@ -24,14 +25,14 @@ WarpXLaserProfiles::GaussianLaserProfile::init ( m_common_params = params; // Parse the properties of the Gaussian profile - ppl.get("profile_waist", m_params.waist); - ppl.get("profile_duration", m_params.duration); - ppl.get("profile_t_peak", m_params.t_peak); - ppl.get("profile_focal_distance", m_params.focal_distance); - ppl.query("zeta", m_params.zeta); - ppl.query("beta", m_params.beta); - ppl.query("phi2", m_params.phi2); - ppl.query("phi0", m_params.phi0); + getWithParser(ppl, "profile_waist", m_params.waist); + getWithParser(ppl, "profile_duration", m_params.duration); + getWithParser(ppl, "profile_t_peak", m_params.t_peak); + getWithParser(ppl, "profile_focal_distance", m_params.focal_distance); + queryWithParser(ppl, "zeta", m_params.zeta); + queryWithParser(ppl, "beta", m_params.beta); + queryWithParser(ppl, "phi2", m_params.phi2); + queryWithParser(ppl, "phi0", m_params.phi0); m_params.stc_direction = m_common_params.p_X; ppl.queryarr("stc_direction", m_params.stc_direction); |