Skip to content

Fix a bug introduced in #4897#4898

Merged
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
WeiqunZhang:fix_4897
Jan 15, 2026
Merged

Fix a bug introduced in #4897#4898
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
WeiqunZhang:fix_4897

Conversation

@WeiqunZhang
Copy link
Copy Markdown
Member

The issue was there was an out of bound error in MFIter when local size is zero.

The issue was there was an out of bound error in MFIter when local size is
zero.
@WeiqunZhang WeiqunZhang requested a review from atmyers January 15, 2026 05:11
@WeiqunZhang WeiqunZhang enabled auto-merge (squash) January 15, 2026 05:11
@WeiqunZhang
Copy link
Copy Markdown
Member Author

Note that the mistake was to call numLocalTiles() in Intitialize(). That function can only be used inside the loop body. Furthermore, it is actually unnecessary because the size of index_map is sufficient.

@WeiqunZhang WeiqunZhang merged commit dbdc016 into AMReX-Codes:development Jan 15, 2026
74 checks passed
@WeiqunZhang WeiqunZhang deleted the fix_4897 branch January 15, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants