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/Parallelization/GuardCellManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Parallelization/GuardCellManager.cpp') 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 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; -- cgit v1.2.3