diff options
author | 2018-09-27 18:35:25 -0700 | |
---|---|---|
committer | 2018-09-27 18:35:25 -0700 | |
commit | dd9caf2503759fb26548802778afdb2f45a896c9 (patch) | |
tree | 967601273bc9ef57c6ceab29b6cc02792e2d3ab1 /Source/WarpX.cpp | |
parent | e75f38a16733e26f21b8a6698c3a16b670290312 (diff) | |
download | WarpX-dd9caf2503759fb26548802778afdb2f45a896c9.tar.gz WarpX-dd9caf2503759fb26548802778afdb2f45a896c9.tar.zst WarpX-dd9caf2503759fb26548802778afdb2f45a896c9.zip |
Added conversion to lowercase for variable s_solver, for compliance with PICMI and convenience.
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 69f679398..b86de2b20 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -393,6 +393,10 @@ WarpX::ReadParameters () pp.query("particle_pusher", particle_pusher_algo); std::string s_solver = ""; pp.query("maxwell_fdtd_solver", s_solver); + std::transform(s_solver.begin(), + s_solver.end(), + s_solver.begin(), + ::tolower); // if maxwell_fdtd_solver is specified, set the value // of maxwell_fdtd_solver_id accordingly. // Otherwise keep the default value maxwell_fdtd_solver_id=0 |