Skip to content

Avoid crash when writing healpix maps caused by HDF5 chunk size larger than the dataset

John Helly requested to merge lightcone_map_chunks into master

Fixes #862 (closed).

When nside is small the lightcone map HDF5 dataset written by one MPI rank can be smaller than the chunk size. In this case we need to reduce the chunk size to the dataset size or else H5Dcreate() will fail.

This merge request also disables chunking of the map datasets when no filters are in use.

Edited by Matthieu Schaller

Merge request reports