mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
fix bug in checking magnitudes of dims when determining default chunk sizes, in the case of unlimited dimensions.
This commit is contained in:
parent
d31459c71e
commit
d6a3fb724c
@ -275,7 +275,7 @@ nc4_find_default_chunksizes(NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var)
|
||||
* dimension. */
|
||||
#define NC_DIM_MULTIPLIER 1000
|
||||
for (d = 0; d < var->ndims; d++)
|
||||
if (var->dim[d]->len * NC_DIM_MULTIPLIER < max_dim)
|
||||
if (!var->dim[d]->unlimited && var->dim[d]->len * NC_DIM_MULTIPLIER < max_dim)
|
||||
var->chunksizes[d] = var->dim[d]->len;
|
||||
|
||||
/* Pick a chunk length for each dimension, if one has not already
|
||||
|
Loading…
Reference in New Issue
Block a user