openPMD / openPMD-api

:floppy_disk: C++ & Python API for Scientific I/O
https://openpmd-api.readthedocs.io
GNU Lesser General Public License v3.0
138 stars 51 forks source link

storeChunk with zero extent #1147

Open ax3l opened 2 years ago

ax3l commented 2 years ago

Describe the bug When calling storeChunk with a zero extent, bad things happen.

Have to check again, but either some backends crashed, hung or were made empty().

To Reproduce Re: https://github.com/ECP-WarpX/WarpX/pull/1898#discussion_r745008290

Python:

import openpmd_api

# ...

or C++

#include <openPMD/openPMD.hpp>

// ...

or command line script, example:

# in directory $HOME/src/openPMD-api
mkdir build && cd build

cmake ..
# fails with:
#   bash: cmake: command not found

Expected behavior A clear and concise description of what you expected to happen.

Software Environment

Additional context Re: https://github.com/ECP-WarpX/WarpX/pull/1898#discussion_r745008290

ax3l commented 1 year ago

I cannot reproduce which test case and openPMD backend (HDF5 or ADIOS2) @RevathiJambunathan used in the linked issue, since we forgot to document it: https://github.com/ECP-WarpX/WarpX/pull/1898#discussion_r745008290