aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXAlgorithmSelection.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-05-31 08:51:46 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-05-31 08:51:46 -0700
commit8b27266c55e5d4560a410c772902284da6eac7de (patch)
tree0e2aa6c4a3bd04612877f6aceb305a9a633e3fab /Source/Utils/WarpXAlgorithmSelection.cpp
parentf102a22cabbadd0fdd11a0100ee1fb446ba03966 (diff)
downloadWarpX-8b27266c55e5d4560a410c772902284da6eac7de.tar.gz
WarpX-8b27266c55e5d4560a410c772902284da6eac7de.tar.zst
WarpX-8b27266c55e5d4560a410c772902284da6eac7de.zip
Address review comments
Diffstat (limited to 'Source/Utils/WarpXAlgorithmSelection.cpp')
-rw-r--r--Source/Utils/WarpXAlgorithmSelection.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp
index a8081cdcb..21d3ef7f0 100644
--- a/Source/Utils/WarpXAlgorithmSelection.cpp
+++ b/Source/Utils/WarpXAlgorithmSelection.cpp
@@ -1,4 +1,6 @@
#include <WarpXAlgorithmSelection.H>
+#include <map>
+#include <algorithm>
// Define dictionary with correspondance between user-input strings,
// and corresponding integer for use inside the code (e.g. in PICSAR).
@@ -53,6 +55,8 @@ GetAlgorithmInteger( amrex::ParmParse& pp, const char* pp_search_key ){
// Read user input ; use "default" if it is not found
std::string algo = "default";
pp.query( pp_search_key, algo );
+ // Convert to lower case
+ std::transform(algo.begin(), algo.end(), algo.begin(), ::tolower);
// Pick the right dictionary
std::map<std::string, int> algo_to_int;