Skip to content

Commit

Permalink
Fix bug introduced in #3959
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed May 27, 2024
1 parent 8e67cc9 commit 46acb85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Src/Boundary/AMReX_InterpBndryData.H
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ InterpBndryDataT<MF>::setBndryValues (BndryRegisterT<MF> const& crse, int c_star
int f_start, int bnd_start, int num_comp, const IntVect& ratio,
int max_order, int max_width)
{
AMREX_ASSERT(this->grids == fine.boxArray());
AMREX_ASSERT(fine.empty() || this->grids == fine.boxArray());

const Box& fine_domain = this->geom.Domain();

Expand All @@ -182,7 +182,8 @@ InterpBndryDataT<MF>::setBndryValues (BndryRegisterT<MF> const& crse, int c_star
#ifdef AMREX_USE_OMP
#pragma omp parallel if (Gpu::notInLaunchRegion())
#endif
for (MFIter mfi(fine,info); mfi.isValid(); ++mfi)
for (MFIter mfi(this->grids, this->bndry[0].DistributionMap(), info);
mfi.isValid(); ++mfi)
{
const Box& fine_bx = mfi.validbox();
for (OrientationIter fi; fi; ++fi) {
Expand Down

0 comments on commit 46acb85

Please sign in to comment.