Commit 8778455
authored
Clean up RedistributeCPU (#4529)
## Summary
This PR simplifies RedistributeCPU to be independent of particle layout
in preparation for #4404.
For this, push_back is replaced by a resize with a geometric growth
strategy. push_back is error-prone due to having the possibility to
desynchronize the sizes of the individual component vectors if used
incorrectly.
## 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 appropriate1 parent 05d2ff6 commit 8778455
1 file changed
+103
-331
lines changed
0 commit comments