Skip to content

Do not call storeChunk upon empty particle species#5667

Merged
psychocoderHPC merged 1 commit intoComputationalRadiationPhysics:devfrom
franzpoeschel:fix-empty-stores
Apr 2, 2026
Merged

Do not call storeChunk upon empty particle species#5667
psychocoderHPC merged 1 commit intoComputationalRadiationPhysics:devfrom
franzpoeschel:fix-empty-stores

Conversation

@franzpoeschel
Copy link
Copy Markdown
Contributor

Follow-up to #5510
Close #5666

In #5510, I added a workaround to ensure that each MPI process performs at least one (possibly empty) storeChunk() operation per dataset, necessary due to HDF5 2.0. However, empty datasets do not allow storeChunk() operations at all (even empty ones).
So, this PR ensures that the workaround only runs when there is actually data for the dataset.

@psychocoderHPC psychocoderHPC merged commit 5996c69 into ComputationalRadiationPhysics:dev Apr 2, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug a bug in the project's code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openPMD issue when writing data with no particles in a species

2 participants