Skip to content

Guard againt potential OOB error in ParticleContainer OK()#4951

Merged
atmyers merged 1 commit intoAMReX-Codes:developmentfrom
cgilet:pcOKfailure
Feb 18, 2026
Merged

Guard againt potential OOB error in ParticleContainer OK()#4951
atmyers merged 1 commit intoAMReX-Codes:developmentfrom
cgilet:pcOKfailure

Conversation

@cgilet
Copy link
Copy Markdown
Contributor

@cgilet cgilet commented Feb 17, 2026

For ParticleContainer OK(), check that m_dummy_mf is large enough,
otherwise code can fail with OOB error if OK() called when resizeData is needed.

Summary

Additional background

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

otherwise code fails with OOB error if OK() called when resizeData
is needed.
@atmyers atmyers merged commit 2b08dcf into AMReX-Codes:development Feb 18, 2026
74 checks passed
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