mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
further movement towards NC_HDF5_FILE_INFO_T
This commit is contained in:
parent
b1a478a497
commit
582bd5ec1a
@ -224,7 +224,7 @@ nc4_create_file(const char *path, int cmode, size_t initialsz,
|
||||
}
|
||||
|
||||
/* Open the root group. */
|
||||
if ((nc4_info->root_grp->hdf_grpid = H5Gopen2(nc4_info->hdfid, "/",
|
||||
if ((nc4_info->root_grp->hdf_grpid = H5Gopen2(hdf5_info->hdfid, "/",
|
||||
H5P_DEFAULT)) < 0)
|
||||
BAIL(NC_EFILEMETA);
|
||||
|
||||
|
@ -2040,8 +2040,11 @@ nc4_rec_read_metadata(NC_GRP_INFO_T *grp)
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((grp->hdf_grpid = H5Gopen2(grp->nc4_info->hdfid,
|
||||
"/", H5P_DEFAULT)) < 0)
|
||||
NC_HDF5_FILE_INFO_T *hdf5_info;
|
||||
hdf5_info = (NC_HDF5_FILE_INFO_T *)grp->nc4_info->format_file_info;
|
||||
|
||||
if ((grp->hdf_grpid = H5Gopen2(hdf5_info->hdfid, "/",
|
||||
H5P_DEFAULT)) < 0)
|
||||
BAIL(NC_EHDFERR);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user