Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions include/picongpu/plugins/openPMD/writer/ParticleAttribute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ namespace picongpu
}
if(elements == 0)
{
if(globalElements == 0)
{
// no one does anything, storeChunk() is not allowed since empty components are automatically
// converted to constant components by the openPMD-api, these do not allow storeChunk
return;
}
// accumulateWrittenBytes += 0;

// Workaround for this bug: https://github.com/openPMD/openPMD-api/pull/1794
Expand Down