mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +08:00
merged nc4hdf.c with changes from master branch
This commit is contained in:
parent
f3435da592
commit
d053418867
@ -992,9 +992,9 @@ var_create_dataset(NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var, nc_bool_t write_dimid
|
||||
/* Always write the hidden coordinates attribute, which lists the
|
||||
* dimids of this var. When present, this speeds opens. When no
|
||||
* present, dimscale matching is used. */
|
||||
if (var->ndims > 1)
|
||||
if (var->ndims)
|
||||
if ((retval = write_coord_dimids(var)))
|
||||
BAIL(retval);
|
||||
BAIL(retval);
|
||||
|
||||
/* If this is a dimscale, mark it as such in the HDF5 file. Also
|
||||
* find the dimension info and store the dataset id of the dimscale
|
||||
|
Loading…
Reference in New Issue
Block a user