diff options
Diffstat (limited to 'Source/Utils/WarpXMovingWindow.cpp')
-rw-r--r-- | Source/Utils/WarpXMovingWindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp index 9b270469c..a95b58a41 100644 --- a/Source/Utils/WarpXMovingWindow.cpp +++ b/Source/Utils/WarpXMovingWindow.cpp @@ -10,6 +10,7 @@ #include "BoundaryConditions/PML.H" #include "Particles/MultiParticleContainer.H" +#include "Parallelization/WarpXCommUtil.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" @@ -292,7 +293,7 @@ WarpX::shiftMF (MultiFab& mf, const Geometry& geom, int num_shift, int dir, if ( WarpX::safe_guard_cells ) { // Fill guard cells. - tmpmf.FillBoundary(geom.periodicity()); + WarpXCommUtil::FillBoundary(tmpmf, geom.periodicity()); } else { IntVect ng_mw = IntVect::TheUnitVector(); // Enough guard cells in the MW direction @@ -300,7 +301,7 @@ WarpX::shiftMF (MultiFab& mf, const Geometry& geom, int num_shift, int dir, // Make sure we don't exceed number of guard cells allocated ng_mw = ng_mw.min(ng); // Fill guard cells. - tmpmf.FillBoundary(ng_mw, geom.periodicity()); + WarpXCommUtil::FillBoundary(tmpmf, ng_mw, geom.periodicity()); } // Make a box that covers the region that the window moved into |