mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
starting to use storage field when opening file
This commit is contained in:
parent
ddb44b5abb
commit
d87a073a34
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user