diff options
author | 2020-01-14 17:05:11 -0800 | |
---|---|---|
committer | 2020-01-14 17:05:11 -0800 | |
commit | ab87830fc7ed2677f77772f6af76fdf1a6b6ec96 (patch) | |
tree | 55f2b2d64b10815b121af90690a85d23d71d8a8a /Source/Utils/WarpXMovingWindow.cpp | |
parent | 88eba773dd4f56be8e47affdd7c4e78e54e59693 (diff) | |
download | WarpX-ab87830fc7ed2677f77772f6af76fdf1a6b6ec96.tar.gz WarpX-ab87830fc7ed2677f77772f6af76fdf1a6b6ec96.tar.zst WarpX-ab87830fc7ed2677f77772f6af76fdf1a6b6ec96.zip |
fix error MW 1 MR 1 subcycling 0
Diffstat (limited to 'Source/Utils/WarpXMovingWindow.cpp')
-rw-r--r-- | Source/Utils/WarpXMovingWindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp index a5d022005..eb01af24e 100644 --- a/Source/Utils/WarpXMovingWindow.cpp +++ b/Source/Utils/WarpXMovingWindow.cpp @@ -238,7 +238,8 @@ 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); - IntVect ng_mw = IntVect::TheZeroVector(); + 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) @@ -247,6 +248,7 @@ WarpX::shiftMF (MultiFab& mf, const Geometry& geom, int num_shift, int dir, ng_mw = ng_mw.min(ng); // Fill guard cells. tmpmf.FillBoundary(ng_mw, geom.periodicity()); + // tmpmf.FillBoundary(ng, geom.periodicity()); // Make a box that covers the region that the window moved into const IndexType& typ = ba.ixType(); |