aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.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/WarpX.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 '')
-rw-r--r--Source/WarpX.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 7d6637e38..9d0bfa636 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -100,7 +100,7 @@ Real WarpX::particle_slice_width_lab = 0.0;
bool WarpX::do_dynamic_scheduling = true;
int WarpX::do_subcycling = 0;
-bool WarpX::exchange_all_guard_cells = 0;
+bool WarpX::safe_guard_cells = 0;
#if (AMREX_SPACEDIM == 3)
IntVect WarpX::Bx_nodal_flag(1,0,0);
@@ -363,7 +363,7 @@ WarpX::ReadParameters ()
pp.query("regrid_int", regrid_int);
pp.query("do_subcycling", do_subcycling);
pp.query("use_hybrid_QED", use_hybrid_QED);
- pp.query("exchange_all_guard_cells", exchange_all_guard_cells);
+ pp.query("safe_guard_cells", safe_guard_cells);
pp.query("override_sync_int", override_sync_int);
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(do_subcycling != 1 || max_level <= 1,
@@ -805,7 +805,7 @@ WarpX::AllocLevelData (int lev, const BoxArray& ba, const DistributionMapping& d
maxwell_fdtd_solver_id,
maxLevel(),
WarpX::v_galilean,
- exchange_all_guard_cells);
+ safe_guard_cells);
if (mypc->nSpeciesDepositOnMainGrid() && n_current_deposition_buffer == 0) {
n_current_deposition_buffer = 1;