From e9a557f57122f88fa6a33da89a4513a9edb9d98d Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 27 Jul 2020 14:54:39 -0700 Subject: Rename Input to `algo.maxwell_solver` (#1188) * Rename Input to `algo.maxwell_solver` Rename the input option `algo.maxwell_fdtd_solver` to `algo.maxwell_solver` and throw a useful error message for users using the old option. This is in preparation to unify FDTD and PSATD input control to reduce mutually exclusive binary variants of WarpX. * MW Solver Name: Update Examples Update all example to use the new algo.maxwell_solver option. * Fix typo in comutation of dt Co-authored-by: Remi Lehe --- Source/Utils/WarpXAlgorithmSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Utils/WarpXAlgorithmSelection.cpp') diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp index 7d8af6023..2a008563a 100644 --- a/Source/Utils/WarpXAlgorithmSelection.cpp +++ b/Source/Utils/WarpXAlgorithmSelection.cpp @@ -82,7 +82,7 @@ GetAlgorithmInteger( amrex::ParmParse& pp, const char* pp_search_key ){ // Pick the right dictionary std::map algo_to_int; - if (0 == std::strcmp(pp_search_key, "maxwell_fdtd_solver")) { + if (0 == std::strcmp(pp_search_key, "maxwell_solver")) { algo_to_int = maxwell_solver_algo_to_int; } else if (0 == std::strcmp(pp_search_key, "particle_pusher")) { algo_to_int = particle_pusher_algo_to_int; -- cgit v1.2.3