aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-11-12 15:34:29 -0800
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-11-12 15:34:29 -0800
commitbd0735f62d784b906ce34cbda81ddf083dbde33c (patch)
tree8911ccf02546e8b07f0c35671a1fe40d8a11f987 /Source/Parallelization/GuardCellManager.cpp
parent8cc9c8a153b6526dad68ee2bcdcacf912969e747 (diff)
downloadWarpX-bd0735f62d784b906ce34cbda81ddf083dbde33c.tar.gz
WarpX-bd0735f62d784b906ce34cbda81ddf083dbde33c.tar.zst
WarpX-bd0735f62d784b906ce34cbda81ddf083dbde33c.zip
cleaning, and additional checks
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r--Source/Parallelization/GuardCellManager.cpp4
1 files changed, 3 insertions, 1 deletions
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.