Particle openPMD IO issues when species not present in the first dump #2900
Labels
bug: affects latest release
Bug also exists in latest release version
bug
Something isn't working
component: diagnostics
all types of outputs
component: openPMD
openPMD I/O
When using openPMD output, if no particles of a species is written at the first dump, the openPMD-viewer cannot read particle data in the later dumps, even if particles are actually dumped. This happens in a wakefield acceleration simulation with a moving window, where the box z dimension is originally (-100.e-6,0) and the plasma starts at 200.e-6 for some reasons.
A reproducer can be found below (using ADIOS2 here, but I think it's the same for HDF5). For a box with z = (-25.e-6,5.e-6), it runs:
This is done with the following submission script (a few seconds, here on the Juwels Booster):
After 500 iterations, the box contains electrons in both cases, but only the first run can be properly read by the openPMD-viewer. This can be seen with the following Notebook:
In the second case, one gets warnings and errors like:
Here is the input file used.
The text was updated successfully, but these errors were encountered: