From ab87830fc7ed2677f77772f6af76fdf1a6b6ec96 Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Tue, 14 Jan 2020 17:05:11 -0800 Subject: fix error MW 1 MR 1 subcycling 0 --- Source/Utils/WarpXMovingWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Utils/WarpXMovingWindow.cpp') 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(); -- cgit v1.2.3 From 4d50d06f2f52575d710f6047541a7732417d3721 Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Tue, 14 Jan 2020 17:50:59 -0800 Subject: cleaning: remove useless comments --- Source/Evolve/WarpXEvolveEM.cpp | 9 --------- Source/Utils/WarpXMovingWindow.cpp | 2 -- Source/WarpX.H | 2 -- 3 files changed, 13 deletions(-) (limited to 'Source/Utils/WarpXMovingWindow.cpp') diff --git a/Source/Evolve/WarpXEvolveEM.cpp b/Source/Evolve/WarpXEvolveEM.cpp index 29349ab1d..1cb17287b 100644 --- a/Source/Evolve/WarpXEvolveEM.cpp +++ b/Source/Evolve/WarpXEvolveEM.cpp @@ -17,15 +17,6 @@ using namespace amrex; -void -WarpX::all_FillBoundary() -{ - FillBoundaryE(guard_cells.ng_alloc_EB, guard_cells.ng_Extra); - FillBoundaryB(guard_cells.ng_alloc_EB, guard_cells.ng_Extra); - FillBoundaryF(guard_cells.ng_alloc_F); - FillBoundaryAux(guard_cells.ng_UpdateAux); -} - void WarpX::EvolveEM (int numsteps) { diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp index eb01af24e..0fcbb6a88 100644 --- a/Source/Utils/WarpXMovingWindow.cpp +++ b/Source/Utils/WarpXMovingWindow.cpp @@ -239,7 +239,6 @@ WarpX::shiftMF (MultiFab& mf, const Geometry& geom, int num_shift, int dir, MultiFab::Copy(tmpmf, mf, 0, 0, nc, ng); 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) @@ -248,7 +247,6 @@ 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(); diff --git a/Source/WarpX.H b/Source/WarpX.H index b91535e41..b9f969abb 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -433,8 +433,6 @@ private: /// void EvolveEM(int numsteps); - void all_FillBoundary(); - void FillBoundaryB (int lev, PatchType patch_type, amrex::IntVect ng); void FillBoundaryE (int lev, PatchType patch_type, amrex::IntVect ng); void FillBoundaryF (int lev, PatchType patch_type, amrex::IntVect ng); -- cgit v1.2.3