Skip to content

Fix insufficient buffer when projecting grids during regrid#5267

Draft
WeiqunZhang wants to merge 1 commit intoAMReX-Codes:developmentfrom
WeiqunZhang:tagboxarray_ngt
Draft

Fix insufficient buffer when projecting grids during regrid#5267
WeiqunZhang wants to merge 1 commit intoAMReX-Codes:developmentfrom
WeiqunZhang:tagboxarray_ngt

Conversation

@WeiqunZhang
Copy link
Copy Markdown
Member

AmrMesh::MakeNewGrids now grows TagBoxes enough to keep intermediate levels properly nested after projecting fine grids downward, preventing the under-tagging that previously led to improperly nested grids.

AmrMesh::MakeNewGrids now grows TagBoxes enough to keep intermediate levels
properly nested after projecting fine grids downward, preventing the
under-tagging that previously led to improperly nested grids.
@BenWibking
Copy link
Copy Markdown
Contributor

Although we currently regrid very frequently, this is something we also might run into with our typical number of levels. Could a test be added for this?

@WeiqunZhang
Copy link
Copy Markdown
Member Author

Yesterday, I had Codex to try to reproduce the issue, but it failed. It also failed to figured out the issue. But now I think I understand the issue and I should be able to come up with a small test to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants