aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-11-06 16:08:55 -0800
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-11-06 16:08:55 -0800
commitbcbbaed571808740c490bcf2b05ae2aaf473a441 (patch)
tree280a596c39e84963f9976f5dd181f4fdc87cadea /Source/Parallelization/GuardCellManager.cpp
parente91822a76810f7a715fd1b60c2c193eb2b8f4c29 (diff)
downloadWarpX-bcbbaed571808740c490bcf2b05ae2aaf473a441.tar.gz
WarpX-bcbbaed571808740c490bcf2b05ae2aaf473a441.tar.zst
WarpX-bcbbaed571808740c490bcf2b05ae2aaf473a441.zip
exchange 1 extra guard cell when moving window and PMLs
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r--Source/Parallelization/GuardCellManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp
index 60a4a3d4f..6deb45f0e 100644
--- a/Source/Parallelization/GuardCellManager.cpp
+++ b/Source/Parallelization/GuardCellManager.cpp
@@ -145,6 +145,9 @@ guardCellManager::Init(
// for the field solve too.
ng_FieldGather = ng_FieldGather.max(ng_FieldSolver);
+ ng_MovingWindow = IntVect::TheZeroVector();
+ ng_MovingWindow[moving_window_dir] = 1;
+
Print()<<"ng_alloc_EB "<<ng_alloc_EB <<'\n';
Print()<<"ng_alloc_J "<< ng_alloc_J<<'\n';
Print()<<"ng_alloc_Rho "<<ng_alloc_Rho <<'\n';
@@ -153,6 +156,7 @@ guardCellManager::Init(
Print()<<"ng_FieldSolver "<<ng_FieldSolver <<'\n';
Print()<<"ng_FieldGather "<<ng_FieldGather<<'\n';
Print()<<"ng_UpdateAux "<<ng_UpdateAux <<'\n';
+ Print()<<"ng_MovingWindow"<<ng_MovingWindow <<'\n';
Print()<<"ng_Extra "<<ng_Extra <<'\n';
}