aboutsummaryrefslogtreecommitdiff
path: root/Source/Laser/LaserParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2020-12-02 09:43:11 +0100
committerGravatar GitHub <noreply@github.com> 2020-12-02 00:43:11 -0800
commit2fbb92dca17e624c6d3c4f51caa412a585b10c32 (patch)
treec6b5e4534e65d0cb487061e6108419a7d4fe23a1 /Source/Laser/LaserParticleContainer.cpp
parent330c6c56ea64a3f4183483f529e66f59aff8f92d (diff)
downloadWarpX-2fbb92dca17e624c6d3c4f51caa412a585b10c32.tar.gz
WarpX-2fbb92dca17e624c6d3c4f51caa412a585b10c32.tar.zst
WarpX-2fbb92dca17e624c6d3c4f51caa412a585b10c32.zip
More parser-enabled ParmParse.query and ParmParse.get (#1501)
* Parser can be used for most input parameters, including charge and mass * update documentation for the math parser * eol * remove typo and update doc for parser * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r--Source/Laser/LaserParticleContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp
index 05c6c6f29..8f74a9252 100644
--- a/Source/Laser/LaserParticleContainer.cpp
+++ b/Source/Laser/LaserParticleContainer.cpp
@@ -51,8 +51,8 @@ LaserParticleContainer::LaserParticleContainer (AmrCore* amr_core, int ispecies,
pp.getarr("polarization", m_p_X);
pp.query("pusher_algo", m_pusher_algo);
- pp.get("wavelength", m_wavelength);
- pp.get("e_max", m_e_max);
+ getWithParser(pp, "wavelength", m_wavelength);
+ getWithParser(pp, "e_max", m_e_max);
pp.query("do_continuous_injection", do_continuous_injection);
pp.query("min_particles_per_mode", m_min_particles_per_mode);