AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
503 stars 336 forks source link

HDF5: Correctly handle writing only some components when writing Particle #4005

Closed arnav-singhal closed 6 days ago

arnav-singhal commented 1 week ago

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: