Open
Description
I find that when Yee method using divE_cleaning = 1 and divB_cleaning = 1, the code will be SIGABRT. And when i use gdb to catch the C++ Exception, it will not to be stop.
STEP 5 starts ...
0::Assertion `ng[dir] >= num_shift' failed, file "/home/user/.local/WarpX/Source/Utils/WarpXMovingWindow.cpp", line 468 !!!
SIGABRT
//WarpXMovingWindow.cpp
using namespace amrex::literals;
WARPX_PROFILE("WarpX::shiftMF()");
const amrex::BoxArray& ba = mf.boxArray();
const amrex::DistributionMapping& dm = mf.DistributionMap();
const int nc = mf.nComp();
const amrex::IntVect& ng = mf.nGrowVect();
AMREX_ALWAYS_ASSERT(ng[dir] >= num_shift);
amrex::MultiFab tmpmf(ba, dm, nc, ng);
amrex::MultiFab::Copy(tmpmf, mf, 0, 0, nc, ng);