From 8e7366f4fb13942e229629a2d2d7551cbb3248f3 Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Sun, 10 Nov 2019 14:14:42 -0800 Subject: pfew fix bug (that could lead to SEGFAULT), and indentation --- Source/Parallelization/GuardCellManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Parallelization/GuardCellManager.cpp') 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 "<