aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXAlgorithmSelection.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-05-31 20:07:55 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-05-31 20:07:55 -0700
commitca771c7fe1a614a5487f054d6612fa6642695081 (patch)
treeef6461b514b7a7799d871b3c9706a7c4d1b67f8e /Source/Utils/WarpXAlgorithmSelection.cpp
parent73ef945e0754789bde20b8add94bd2ec58e29f4a (diff)
downloadWarpX-ca771c7fe1a614a5487f054d6612fa6642695081.tar.gz
WarpX-ca771c7fe1a614a5487f054d6612fa6642695081.tar.zst
WarpX-ca771c7fe1a614a5487f054d6612fa6642695081.zip
Fix parsing of gathering string
Diffstat (limited to 'Source/Utils/WarpXAlgorithmSelection.cpp')
-rw-r--r--Source/Utils/WarpXAlgorithmSelection.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp
index 44e032a0b..89802e064 100644
--- a/Source/Utils/WarpXAlgorithmSelection.cpp
+++ b/Source/Utils/WarpXAlgorithmSelection.cpp
@@ -68,6 +68,8 @@ GetAlgorithmInteger( amrex::ParmParse& pp, const char* pp_search_key ){
algo_to_int = current_deposition_algo_to_int;
} else if (pp_search_key == "charge_deposition") {
algo_to_int = charge_deposition_algo_to_int;
+ } else if (pp_search_key == "field_gathering") {
+ algo_to_int = gathering_algo_to_int;
} else {
std::string pp_search_string = pp_search_key;
amrex::Abort("Unknown algorithm type: " + pp_search_string);