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 getitem for cases with incomplete domains #385

Conversation

dpgrote
Copy link
Contributor

@dpgrote dpgrote commented Oct 23, 2024

This is a fix for the global indexing mechanism in MultiFab that is needed in cases where the box array does not fully cover the domain. In those cases, the __getitem__ is done twice, once to get all of the data including places where the ghost cells internal to the domain cover places that are not covered by valid cells, and a second time to ensure that in places where the ghost cells do overlap valid cells, that the data used is from the valid cells.

@dpgrote dpgrote added the bug: affects latest release Bug also exists in latest release version label Oct 23, 2024
@WeiqunZhang WeiqunZhang merged commit 47f5758 into AMReX-Codes:development Oct 23, 2024
18 checks passed
@dpgrote dpgrote deleted the fix_multifab_getitem_for_incomplete_domains branch October 23, 2024 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: affects latest release Bug also exists in latest release version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants