diff options
author | 2019-11-10 14:14:42 -0800 | |
---|---|---|
committer | 2019-11-10 14:14:42 -0800 | |
commit | 8e7366f4fb13942e229629a2d2d7551cbb3248f3 (patch) | |
tree | 8c672589a965cd15bcc21af92d852108fcd51aff /Source/Parallelization/GuardCellManager.cpp | |
parent | 2bf80780514eaef305b5c5e11196b2e499b8ac96 (diff) | |
download | WarpX-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.cpp | 5 |
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'; |