From d053418867bbeb6ef60e0f5eccecab806f9f6265 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Tue, 24 Aug 2021 02:07:43 -0600 Subject: [PATCH] merged nc4hdf.c with changes from master branch --- libhdf5/nc4hdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libhdf5/nc4hdf.c b/libhdf5/nc4hdf.c index e4428ed3b..ba09f1ddf 100644 --- a/libhdf5/nc4hdf.c +++ b/libhdf5/nc4hdf.c @@ -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