From 8b27266c55e5d4560a410c772902284da6eac7de Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Fri, 31 May 2019 08:51:46 -0700 Subject: Address review comments --- Source/Utils/WarpXAlgorithmSelection.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Utils/WarpXAlgorithmSelection.cpp') 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 +#include +#include // 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 algo_to_int; -- cgit v1.2.3