diff options
author | 2021-10-12 02:39:58 +0200 | |
---|---|---|
committer | 2021-10-11 17:39:58 -0700 | |
commit | 5a12391f0c2350e9083bf3138da210eb81707e6e (patch) | |
tree | 5755fcbc17dfd120e2f3ad8fd019de7b15aca24f /Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp | |
parent | d367eb0c15c36baf390d0c9ec7bc068fe25490b7 (diff) | |
download | WarpX-5a12391f0c2350e9083bf3138da210eb81707e6e.tar.gz WarpX-5a12391f0c2350e9083bf3138da210eb81707e6e.tar.zst WarpX-5a12391f0c2350e9083bf3138da210eb81707e6e.zip |
Use parser for more input parameters (#2386)
* Use parser for more input parameters
* Fix PSATD compilation and apply suggestions from code review
* Avoid out of bound array access for num_particles_per_cell_each_dim
* Fix few input files with respect to num_particles_per_cell_each_dim
* Fix get that incorrectly became query
Diffstat (limited to 'Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp')
-rw-r--r-- | Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp index 63d7beea2..d43d9305f 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp @@ -7,6 +7,7 @@ #include "Laser/LaserProfiles.H" #include "Utils/WarpX_Complex.H" +#include "Utils/WarpXUtil.H" #include <AMReX.H> #include <AMReX_Extension.H> @@ -39,7 +40,7 @@ WarpXLaserProfiles::FieldFunctionLaserProfile::init ( symbols.erase("t"); // after removing variables, we are left with constants for (auto it = symbols.begin(); it != symbols.end(); ) { Real v; - if (ppc.query(it->c_str(), v)) { + if (queryWithParser(ppc, it->c_str(), v)) { m_parser.setConstant(*it, v); it = symbols.erase(it); } else { |