Skip to content

Conversation

@AlexanderSinn
Copy link
Member

@AlexanderSinn AlexanderSinn commented Oct 27, 2025

Summary

This PR adds an optional GrowthStrategy argument to some PODVector functions to switch the allocation strategy.

It is not yet clear to me which functions should be affected by the runtime controls and if the runtime controls should have priority over explicitly set strategies.

Discussion in #4715

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 pushed a commit that referenced this pull request Nov 3, 2025
While working on #4735 I noticed that in shrink_to_fit the newly
allocated data pointer was not saved in the PODVector.
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.

1 participant