From a1ade2b37db409b3c71147bf5bd27a40ded7ff11 Mon Sep 17 00:00:00 2001 From: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> Date: Sun, 2 Oct 2022 23:25:44 +0200 Subject: 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 --- Source/Particles/LaserParticleContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Particles/LaserParticleContainer.cpp') 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", -- cgit v1.2.3