aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2020-02-21 14:27:52 -0800
committerGravatar GitHub <noreply@github.com> 2020-02-21 14:27:52 -0800
commit29e99787fc8b6548f20c352ffe24fe7a94ed3edb (patch)
tree80276e0d911bef5b455b4eabf4ece8e4b15bfba5 /Source/Parallelization/GuardCellManager.cpp
parent5ae9c7e3edcc18272e32f5871329c024fddc4df9 (diff)
downloadWarpX-29e99787fc8b6548f20c352ffe24fe7a94ed3edb.tar.gz
WarpX-29e99787fc8b6548f20c352ffe24fe7a94ed3edb.tar.zst
WarpX-29e99787fc8b6548f20c352ffe24fe7a94ed3edb.zip
Make the option to exchange all guard cells safer (#709)
* make the option to exchange all guard cells safer * EOL **** * more consistent naming in guard cells test script
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 d7d2bce7c..2a587a211 100644
--- a/Source/Parallelization/GuardCellManager.cpp
+++ b/Source/Parallelization/GuardCellManager.cpp
@@ -25,7 +25,7 @@ guardCellManager::Init(
const int maxwell_fdtd_solver_id,
const int max_level,
const amrex::Array<amrex::Real,3> v_galilean,
- const bool exchange_all_guard_cells)
+ const bool safe_guard_cells)
{
// When using subcycling, the particles on the fine level perform two pushes
// before being redistributed ; therefore, we need one extra guard cell
@@ -137,7 +137,7 @@ guardCellManager::Init(
ng_FieldSolverF = IntVect(AMREX_D_DECL(1,1,1));
#endif
- if (exchange_all_guard_cells){
+ if (safe_guard_cells){
// Run in safe mode: exchange all allocated guard cells at each
// call of FillBoundary
ng_FieldSolver = ng_alloc_EB;