aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/LaserParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> 2022-10-02 23:25:44 +0200
committerGravatar GitHub <noreply@github.com> 2022-10-02 14:25:44 -0700
commita1ade2b37db409b3c71147bf5bd27a40ded7ff11 (patch)
tree4ac9f127a5cc297f6d5659be52c05cf7f92604de /Source/Particles/LaserParticleContainer.cpp
parent45ec9e3550755f375a6564ae03b90bc323e15abc (diff)
downloadWarpX-a1ade2b37db409b3c71147bf5bd27a40ded7ff11.tar.gz
WarpX-a1ade2b37db409b3c71147bf5bd27a40ded7ff11.tar.zst
WarpX-a1ade2b37db409b3c71147bf5bd27a40ded7ff11.zip
Use parser for input parameters of type long (#2506)
* Use parser for input parameters of type long * Revert "Use parser for input parameters of type long" This reverts commit 9573bb3f693f1247e77faa433fd96dc294e68361. * Use parser for inputs of type long * add safeCasttoLong function * Fix typo in comment
Diffstat (limited to 'Source/Particles/LaserParticleContainer.cpp')
-rw-r--r--Source/Particles/LaserParticleContainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp
index 94e67065d..b56129dc0 100644
--- a/Source/Particles/LaserParticleContainer.cpp
+++ b/Source/Particles/LaserParticleContainer.cpp
@@ -122,7 +122,7 @@ LaserParticleContainer::LaserParticleContainer (AmrCore* amr_core, int ispecies,
);
pp_laser_name.query("do_continuous_injection", do_continuous_injection);
- pp_laser_name.query("min_particles_per_mode", m_min_particles_per_mode);
+ queryWithParser(pp_laser_name, "min_particles_per_mode", m_min_particles_per_mode);
if (m_e_max == amrex::Real(0.)){
ablastr::warn_manager::WMRecordWarning("Laser",