Open bsrunnels opened 1 month ago
Sorry for taking me so long to reply. The issue is this line
complementIn
is used to remove all the valid points from B ox dst_bx_ng
. But the function does not take periodic boundaries into account. It's possible to do that. So let's keep this issue open. I will try to implement it. Meanwhile, you could achieve it by calling FillBoundary twice. First with multi_ghost=true and no periodic boundaries, and then with multi_ghost=false and periodic boundaries.
Thanks @WeiqunZhang. I'll keep an eye on the issue, but will implement your temporary fix when/if we need periodicity working quickly.
Right now periodicity is not possible if there are two or more ghost nodes (i.e. if
FabArrayBase::m_multi_ghost
is true) - perhttps://github.com/AMReX-Codes/amrex/blob/930e75ea9d02a46278a802ea886d950f4c8d1a90/Src/Base/AMReX_FabArrayBase.cpp#L879
Is it possible to update
FabArrayBase
to allow for periodicity with multiple layers of ghost nodes?