From 72c751d492c44c0bc4d318aeb195e05636c8c38a Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Fri, 3 Jan 2020 19:30:34 -0800 Subject: include Remi's suggestions --- Source/Utils/WarpXMovingWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Utils/WarpXMovingWindow.cpp') 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) -- cgit v1.2.3