diff options
author | 2021-10-25 14:20:15 -0700 | |
---|---|---|
committer | 2021-10-25 14:20:15 -0700 | |
commit | 3ef89c687399c2724ceba1841e35bb6acbca9b00 (patch) | |
tree | caceddf710b5435aa5164b19dce54547fa978b71 /Source/Utils/WarpXMovingWindow.cpp | |
parent | a247bd0091d8f188d6ff40695688c3e2fc64ba84 (diff) | |
download | WarpX-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.cpp | 2 |
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); |