diff options
author | 2019-10-29 20:46:45 -0700 | |
---|---|---|
committer | 2019-10-29 20:46:45 -0700 | |
commit | 0fe1905133033f128b235a14b04135c064800521 (patch) | |
tree | 52388cad17b5b4fa3f114d5243f73385774147ab /Source/Parallelization/GuardCellManager.cpp | |
parent | 9854b9afb105825e41ac6fade98564425b0179f9 (diff) | |
download | WarpX-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.cpp | 7 |
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); } |