From d87a073a347b159d6917cf4177614784fac2b28a Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sun, 8 Mar 2020 06:21:08 -0600 Subject: [PATCH] starting to use storage field when opening file --- libhdf5/hdf5open.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libhdf5/hdf5open.c b/libhdf5/hdf5open.c index a8cf7d3b8..7174f6b1f 100644 --- a/libhdf5/hdf5open.c +++ b/libhdf5/hdf5open.c @@ -1096,6 +1096,7 @@ get_chunking_info(hid_t propid, NC_VAR_INFO_T *var) /* Remember the layout and, if chunked, the chunksizes. */ if (layout == H5D_CHUNKED) { + var->storage = NC_CHUNKED; if (H5Pget_chunk(propid, H5S_MAX_RANK, chunksize) < 0) return NC_EHDFERR; if (!(var->chunksizes = malloc(var->ndims * sizeof(size_t)))) @@ -1104,9 +1105,15 @@ get_chunking_info(hid_t propid, NC_VAR_INFO_T *var) var->chunksizes[d] = chunksize[d]; } else if (layout == H5D_CONTIGUOUS) + { + var->storage = NC_CONTIGUOUS; var->contiguous = NC_TRUE; + } else if (layout == H5D_COMPACT) + { + var->storage = NC_COMPACT; var->compact = NC_TRUE; + } return NC_NOERR; }