aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-11-11 18:32:23 -0800
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-11-11 18:32:23 -0800
commit89069ca7ba61dc34f9b392c75d0d4e2f3c2e0938 (patch)
treec4de95bebf93ac838d0a262bc12b37f858d1a0ad /Source/Parallelization/GuardCellManager.cpp
parent0d06578a4f08aa7f98369109ca4f1bf88d09acf4 (diff)
downloadWarpX-89069ca7ba61dc34f9b392c75d0d4e2f3c2e0938.tar.gz
WarpX-89069ca7ba61dc34f9b392c75d0d4e2f3c2e0938.tar.zst
WarpX-89069ca7ba61dc34f9b392c75d0d4e2f3c2e0938.zip
move FillBoundaryF call to where needed, and allow for extra guard cells
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r--Source/Parallelization/GuardCellManager.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp
index 9d4a06f73..6a60177c0 100644
--- a/Source/Parallelization/GuardCellManager.cpp
+++ b/Source/Parallelization/GuardCellManager.cpp
@@ -17,7 +17,9 @@ guardCellManager::Init(
const int nox_fft, const int noy_fft, const int noz_fft,
const int nci_corr_stencil,
const int maxwell_fdtd_solver_id,
- const int max_level)
+ const int max_level,
+ const int extra_guard_cells_alloc,
+ const int extra_guard_cells_exchange)
{
// When using subcycling, the particles on the fine level perform two pushes
// before being redistributed ; therefore, we need one extra guard cell
@@ -149,6 +151,17 @@ guardCellManager::Init(
ng_MovingWindow[moving_window_dir] = 1;
}
+ ng_alloc_EB += extra_guard_cells_alloc;
+ ng_alloc_J += extra_guard_cells_alloc;
+ ng_alloc_Rho += extra_guard_cells_alloc;
+ ng_alloc_F += extra_guard_cells_alloc;
+ ng_alloc_F_int += extra_guard_cells_alloc;
+
+ ng_FieldSolver += extra_guard_cells_exchange;
+ ng_FieldGather += extra_guard_cells_exchange;
+ ng_UpdateAux += extra_guard_cells_exchange;
+ ng_MovingWindow += extra_guard_cells_exchange;
+
Print()<<"ng_alloc_EB "<<ng_alloc_EB <<'\n';
Print()<<"ng_alloc_J "<< ng_alloc_J<<'\n';
Print()<<"ng_alloc_Rho "<<ng_alloc_Rho <<'\n';