aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-10-29 20:46:45 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-10-29 20:46:45 -0700
commit0fe1905133033f128b235a14b04135c064800521 (patch)
tree52388cad17b5b4fa3f114d5243f73385774147ab /Source/Parallelization/GuardCellManager.cpp
parent9854b9afb105825e41ac6fade98564425b0179f9 (diff)
downloadWarpX-0fe1905133033f128b235a14b04135c064800521.tar.gz
WarpX-0fe1905133033f128b235a14b04135c064800521.tar.zst
WarpX-0fe1905133033f128b235a14b04135c064800521.zip
Reduce number of guard cells exchanged in Moving window and EvolveEM
Diffstat (limited to '')
-rw-r--r--Source/Parallelization/GuardCellManager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp
index c790c3472..166f0d58d 100644
--- a/Source/Parallelization/GuardCellManager.cpp
+++ b/Source/Parallelization/GuardCellManager.cpp
@@ -131,5 +131,10 @@ guardCellManager::Init(
int FGcell[4] = {0,1,1,2}; // Index is nox
ng_FieldGather = IntVect(AMREX_D_DECL(FGcell[nox],FGcell[nox],FGcell[nox]));
ngJ_CurrentDepo = ng_FieldGather;
- ng_NCIFilter = IntVect(AMREX_D_DECL(0,0,4));
+ if (do_fdtd_nci_corr){
+ ng_NCIFilter = IntVect::TheZeroVector();
+ ng_NCIFilter[AMREX_SPACEDIM-1] = 4;
+ }
+ ng_Aux = 2*ng_FieldGather+ng_NCIFilter;
+ ng_Aux = ng_Aux.min(ngE);
}