Correctly names file attribute to match component index with dataset index and correctly calculates size of each particle's data so that the dataset is aligned.
Additional background
Previously, all components of a particle were being counted, whether written or not, leading to misalignment across different processes when writing.
Checklist
The proposed changes:
[x] 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
Summary
Correctly names file attribute to match component index with dataset index and correctly calculates size of each particle's data so that the dataset is aligned.
Additional background
Previously, all components of a particle were being counted, whether written or not, leading to misalignment across different processes when writing.
Checklist
The proposed changes: