From 29e99787fc8b6548f20c352ffe24fe7a94ed3edb Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Fri, 21 Feb 2020 14:27:52 -0800 Subject: 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 --- Source/WarpX.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/WarpX.cpp') 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; -- cgit v1.2.3