From bd0735f62d784b906ce34cbda81ddf083dbde33c Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Tue, 12 Nov 2019 15:34:29 -0800 Subject: cleaning, and additional checks --- Source/Parallelization/GuardCellManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Parallelization/GuardCellManager.cpp') diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index cfe6e8470..28670fb91 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -119,6 +119,7 @@ guardCellManager::Init( #else ng_FieldSolver = IntVect(AMREX_D_DECL(1,1,1)); #endif + ng_FieldSolver = ng_FieldSolver.min(ng_alloc_EB); // Compute number of cells required for Field Gather int FGcell[4] = {0,1,1,2}; // Index is nox @@ -136,7 +137,8 @@ guardCellManager::Init( // separately. ng_FieldGather = ng_FieldGather_noNCI + ng_NCIFilter; - // Guard cells for auxiliary grid + // Guard cells for auxiliary grid. + // Not sure why there is a 2* here... ng_UpdateAux = 2*ng_FieldGather_noNCI + ng_NCIFilter; // Make sure we do not exchange more guard cells than allocated. -- cgit v1.2.3