aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXMovingWindow.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2020-01-03 19:30:34 -0800
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2020-01-03 19:30:34 -0800
commit72c751d492c44c0bc4d318aeb195e05636c8c38a (patch)
treebfc14a4213a8c3e528a300f683535669cb91c5e1 /Source/Utils/WarpXMovingWindow.cpp
parent0dd9333849b53089e1f7cad91b18ed2010a5c29a (diff)
downloadWarpX-72c751d492c44c0bc4d318aeb195e05636c8c38a.tar.gz
WarpX-72c751d492c44c0bc4d318aeb195e05636c8c38a.tar.zst
WarpX-72c751d492c44c0bc4d318aeb195e05636c8c38a.zip
include Remi's suggestions
Diffstat (limited to 'Source/Utils/WarpXMovingWindow.cpp')
-rw-r--r--Source/Utils/WarpXMovingWindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp
index 2c0c6eac9..7044d75d8 100644
--- a/Source/Utils/WarpXMovingWindow.cpp
+++ b/Source/Utils/WarpXMovingWindow.cpp
@@ -221,8 +221,7 @@ WarpX::shiftMF (MultiFab& mf, const Geometry& geom, int num_shift, int dir,
MultiFab tmpmf(ba, dm, nc, ng);
MultiFab::Copy(tmpmf, mf, 0, 0, nc, ng);
- // Not sure why this is needed, but it is...
- IntVect ng_mw = IntVect::TheUnitVector();
+ IntVect ng_mw = IntVect::TheZeroVector();
// Enough guard cells in the MW direction
ng_mw[dir] = num_shift;
// Add the extra cell (if momentum-conserving gather with staggered field solve)