Skip to content

Fix PODVector shrink_to_fit() with nonzero size#4748

Merged
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
AlexanderSinn:Fix_PODVector_shrink_to_fit_with_nonzero_size
Nov 3, 2025
Merged

Fix PODVector shrink_to_fit() with nonzero size#4748
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
AlexanderSinn:Fix_PODVector_shrink_to_fit_with_nonzero_size

Conversation

@AlexanderSinn
Copy link
Copy Markdown
Member

Summary

While working on #4735 I noticed that in shrink_to_fit the newly allocated data pointer was not saved in the PODVector.

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

@WeiqunZhang WeiqunZhang merged commit 8031a6e into AMReX-Codes:development Nov 3, 2025
73 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