Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
`FillPatchIterator` is derived from `MFIter`.  We need to reset
`MFIter::depth` so that the ctor of `FillPatchIterator` can start `MFIter`.
  • Loading branch information
WeiqunZhang committed Nov 9, 2020
1 parent b94e1d2 commit 6936886
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Src/Amr/AMReX_AmrLevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,9 @@ FillPatchIterator::FillPatchIterator (AmrLevel& amrlevel,
m_amrlevel(amrlevel),
m_leveldata(leveldata),
m_ncomp(0)
{}
{
MFIter::depth = 0;
}

FillPatchIteratorHelper::FillPatchIteratorHelper (AmrLevel& amrlevel,
MultiFab& leveldata,
Expand Down Expand Up @@ -709,6 +711,7 @@ FillPatchIterator::FillPatchIterator (AmrLevel& amrlevel,
BL_ASSERT(AmrLevel::desc_lst[idx].inRange(scomp,ncomp));
BL_ASSERT(0 <= idx && idx < AmrLevel::desc_lst.size());

MFIter::depth = 0;
Initialize(boxGrow,time,idx,scomp,ncomp);

#ifdef BL_USE_TEAM
Expand Down

0 comments on commit 6936886

Please sign in to comment.