aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXAlgorithmSelection.cpp
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2020-01-09 15:45:49 -0800
committerGravatar Dave Grote <grote1@llnl.gov> 2020-01-09 15:45:49 -0800
commit8f23eb12d388e55dc7f1cc0b9fc426380fa1740c (patch)
treea46a0e235f266b9a349f10448f8c5eb9268d832a /Source/Utils/WarpXAlgorithmSelection.cpp
parente93fd4ee732826df82f6fd942b27b81daa7dbff4 (diff)
parent0b25b1b68f1b70e965295505d1503a3e57b6c2cc (diff)
downloadWarpX-8f23eb12d388e55dc7f1cc0b9fc426380fa1740c.tar.gz
WarpX-8f23eb12d388e55dc7f1cc0b9fc426380fa1740c.tar.zst
WarpX-8f23eb12d388e55dc7f1cc0b9fc426380fa1740c.zip
Merge remote-tracking branch 'ECPwarpx/dev' into fix_picmi_diagnostics
Diffstat (limited to 'Source/Utils/WarpXAlgorithmSelection.cpp')
-rw-r--r--Source/Utils/WarpXAlgorithmSelection.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp
index 4b66a0809..08272089e 100644
--- a/Source/Utils/WarpXAlgorithmSelection.cpp
+++ b/Source/Utils/WarpXAlgorithmSelection.cpp
@@ -18,14 +18,18 @@ const std::map<std::string, int> maxwell_solver_algo_to_int = {
const std::map<std::string, int> particle_pusher_algo_to_int = {
{"boris", ParticlePusherAlgo::Boris },
{"vay", ParticlePusherAlgo::Vay },
- {"higuera", ParticlePusherAlgo::HigueraCary },
+ {"higuera", ParticlePusherAlgo::HigueraCary },
{"default", ParticlePusherAlgo::Boris }
};
const std::map<std::string, int> current_deposition_algo_to_int = {
- {"esirkepov", CurrentDepositionAlgo::Esirkepov },
- {"direct", CurrentDepositionAlgo::Direct },
- {"default", CurrentDepositionAlgo::Esirkepov }
+ {"esirkepov", CurrentDepositionAlgo::Esirkepov },
+ {"direct", CurrentDepositionAlgo::Direct },
+#ifdef WARPX_USE_PSATD
+ {"default", CurrentDepositionAlgo::Direct }
+#else
+ {"default", CurrentDepositionAlgo::Esirkepov }
+#endif
};
const std::map<std::string, int> charge_deposition_algo_to_int = {