diff options
author | 2020-01-03 17:24:58 -0800 | |
---|---|---|
committer | 2020-01-03 17:24:58 -0800 | |
commit | 92cea4607f40d770a487d8069a12a2e71244f992 (patch) | |
tree | 7f706dafe7a339e880fe7fe80073e7bcc786f1dd /Source/Utils/WarpXAlgorithmSelection.cpp | |
parent | 028540fdc4eabba9772834f855ac2ad505f3b006 (diff) | |
download | WarpX-92cea4607f40d770a487d8069a12a2e71244f992.tar.gz WarpX-92cea4607f40d770a487d8069a12a2e71244f992.tar.zst WarpX-92cea4607f40d770a487d8069a12a2e71244f992.zip |
Update default deposition algorithm
Diffstat (limited to 'Source/Utils/WarpXAlgorithmSelection.cpp')
-rw-r--r-- | Source/Utils/WarpXAlgorithmSelection.cpp | 12 |
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 = { |