aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXMovingWindow.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers@lbl.gov> 2021-10-25 14:20:15 -0700
committerGravatar GitHub <noreply@github.com> 2021-10-25 14:20:15 -0700
commit3ef89c687399c2724ceba1841e35bb6acbca9b00 (patch)
treecaceddf710b5435aa5164b19dce54547fa978b71 /Source/Utils/WarpXMovingWindow.cpp
parenta247bd0091d8f188d6ff40695688c3e2fc64ba84 (diff)
downloadWarpX-3ef89c687399c2724ceba1841e35bb6acbca9b00.tar.gz
WarpX-3ef89c687399c2724ceba1841e35bb6acbca9b00.tar.zst
WarpX-3ef89c687399c2724ceba1841e35bb6acbca9b00.zip
Bugfixes for ref_ratio = 4 in the moving window direction. (#2452)
* Bugfixes for ref_ratio = 4 in the moving window direction. * == should be <= * only adjust guard cells for moving window by ref_ratio if nlevs > 1 * restore logic to always have at least 2 grow cells if moving window is on * remove comment about this not being needed on level 0 - it does.
Diffstat (limited to 'Source/Utils/WarpXMovingWindow.cpp')
-rw-r--r--Source/Utils/WarpXMovingWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp
index a95b58a41..d4fa74683 100644
--- a/Source/Utils/WarpXMovingWindow.cpp
+++ b/Source/Utils/WarpXMovingWindow.cpp
@@ -286,7 +286,7 @@ WarpX::shiftMF (MultiFab& mf, const Geometry& geom, int num_shift, int dir,
const int nc = mf.nComp();
const IntVect& ng = mf.nGrowVect();
- AMREX_ALWAYS_ASSERT(ng.min() >= num_shift);
+ AMREX_ALWAYS_ASSERT(ng[dir] >= num_shift);
MultiFab tmpmf(ba, dm, nc, ng);
MultiFab::Copy(tmpmf, mf, 0, 0, nc, ng);