Hi-PACE / hipace

Highly efficient Plasma Accelerator Emulation, quasistatic particle-in-cell code
https://hipace.readthedocs.io
Other
51 stars 14 forks source link

Fix openPMD crash if beam has no particles #1121

Closed AlexanderSinn closed 3 months ago

AlexanderSinn commented 3 months ago

Previously, if currRecordComp.storeChunk() was called with no particles, one would get:

terminate called after throwing an instance of 'std::runtime_error'
  what():  Chunks cannot be written for a constant RecordComponent.
SIGABRT
See Backtrace.0 file for details