Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assertions involving IntVect #3919

Merged
merged 1 commit into from
May 6, 2024

Conversation

WeiqunZhang
Copy link
Member

A MultiFab used to have the same number of ghost cells in all directions. This has no longer been the case for many years. But many assertions have not been updated for this change. This commit fixes various assertions to make it more appropriate.

Also added are overloaded functions for element-wise comparison between an IntVect and an integer. This makes the code cleaner.

A MultiFab used to have the same number of ghost cells in all
directions. This has no longer been the case for many years. But many
assertions have not been updated for this change. This commit fixes various
assertions to make it more appropriate.

Also added are overloaded functions for element-wise comparison between an
IntVect and an integer. This makes the code cleaner.
@asalmgren
Copy link
Member

BTW -- in cleaning up code, it would be good at some point to do an all-search-and-replace in amrex for BL_ASSERT --> AMREX_ASSERT.

@WeiqunZhang WeiqunZhang merged commit a72fb51 into AMReX-Codes:development May 6, 2024
69 checks passed
@WeiqunZhang WeiqunZhang deleted the assert_iv branch May 6, 2024 16:21
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.

None yet

2 participants