aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2020-07-27 14:54:39 -0700
committerGravatar GitHub <noreply@github.com> 2020-07-27 14:54:39 -0700
commite9a557f57122f88fa6a33da89a4513a9edb9d98d (patch)
tree6e0c6dbfaeae686a285aff29f5d929f7998bda20 /Source/Parallelization/GuardCellManager.cpp
parent252efd0db610e7e3b66eb643cbfb0294f3108be7 (diff)
downloadWarpX-e9a557f57122f88fa6a33da89a4513a9edb9d98d.tar.gz
WarpX-e9a557f57122f88fa6a33da89a4513a9edb9d98d.tar.zst
WarpX-e9a557f57122f88fa6a33da89a4513a9edb9d98d.zip
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 <remi.lehe@normalesup.org>
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r--Source/Parallelization/GuardCellManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp
index a74a04cbe..5ce79fc86 100644
--- a/Source/Parallelization/GuardCellManager.cpp
+++ b/Source/Parallelization/GuardCellManager.cpp
@@ -22,7 +22,7 @@ guardCellManager::Init(
const int nox,
const int nox_fft, const int noy_fft, const int noz_fft,
const int nci_corr_stencil,
- const int maxwell_fdtd_solver_id,
+ const int maxwell_solver_id,
const int max_level,
const amrex::Array<amrex::Real,3> v_galilean,
const bool safe_guard_cells)
@@ -90,7 +90,7 @@ guardCellManager::Init(
// after pushing particle.
int ng_alloc_F_int = (do_moving_window) ? 2 : 0;
// CKC solver requires one additional guard cell
- if (maxwell_fdtd_solver_id == 1) ng_alloc_F_int = std::max( ng_alloc_F_int, 1 );
+ if (maxwell_solver_id == 1) ng_alloc_F_int = std::max( ng_alloc_F_int, 1 );
ng_alloc_F = IntVect(AMREX_D_DECL(ng_alloc_F_int, ng_alloc_F_int, ng_alloc_F_int));
#ifdef WARPX_USE_PSATD