aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-11-10 14:14:42 -0800
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-11-10 14:14:42 -0800
commit8e7366f4fb13942e229629a2d2d7551cbb3248f3 (patch)
tree8c672589a965cd15bcc21af92d852108fcd51aff /Source/Parallelization/GuardCellManager.cpp
parent2bf80780514eaef305b5c5e11196b2e499b8ac96 (diff)
downloadWarpX-8e7366f4fb13942e229629a2d2d7551cbb3248f3.tar.gz
WarpX-8e7366f4fb13942e229629a2d2d7551cbb3248f3.tar.zst
WarpX-8e7366f4fb13942e229629a2d2d7551cbb3248f3.zip
pfew fix bug (that could lead to SEGFAULT), and indentation
Diffstat (limited to '')
-rw-r--r--Source/Parallelization/GuardCellManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp
index 6deb45f0e..9d4a06f73 100644
--- a/Source/Parallelization/GuardCellManager.cpp
+++ b/Source/Parallelization/GuardCellManager.cpp
@@ -145,8 +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;
+ if (do_moving_window){
+ ng_MovingWindow[moving_window_dir] = 1;
+ }
Print()<<"ng_alloc_EB "<<ng_alloc_EB <<'\n';
Print()<<"ng_alloc_J "<< ng_alloc_J<<'\n';