Skip to content

How does MFIter work when a MultiFab has ghost cells #3372

Answered by WeiqunZhang
ZiyangHuang asked this question in Q&A
Discussion options

You must be logged in to vote

No, the ghost cells are not included in the loop above. If you want to include ghost cells, you can use mfi.growntilebox(). By default, growntilebox includes ghost cells. You can also do growntilbox(1) if you only want one ghost cell. You can also do growntilebox(IntVect(0,1,0)) for zero ghost cells in x and z-directions and one ghost cell in y-direction.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ZiyangHuang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants