Commit 7418556
authored
HDF5: Correctly handle writing only some components when writing Particle (#4005)
## 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:
- [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 appropriate1 parent 73e46e6 commit 7418556
File tree
2 files changed
+24
-4
lines changed- Src/Extern/HDF5
2 files changed
+24
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
708 | 721 | | |
709 | 722 | | |
710 | 723 | | |
711 | 724 | | |
712 | 725 | | |
713 | 726 | | |
714 | | - | |
| 727 | + | |
715 | 728 | | |
716 | 729 | | |
717 | 730 | | |
718 | 731 | | |
719 | 732 | | |
720 | | - | |
| 733 | + | |
721 | 734 | | |
722 | 735 | | |
723 | 736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
292 | 293 | | |
| 294 | + | |
| 295 | + | |
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
296 | | - | |
| 299 | + | |
297 | 300 | | |
| 301 | + | |
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
304 | 308 | | |
| 309 | + | |
| 310 | + | |
305 | 311 | | |
306 | 312 | | |
307 | | - | |
| 313 | + | |
308 | 314 | | |
| 315 | + | |
309 | 316 | | |
310 | 317 | | |
311 | 318 | | |
| |||
0 commit comments