mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Merge branch 'master' into ejh_hdf5_sep_file_info
This commit is contained in:
commit
df15707488
@ -17,6 +17,7 @@ libnchdf5_la_SOURCES = nc4hdf.c nc4info.c hdf5file.c hdf5attr.c \
|
||||
hdf5dim.c hdf5grp.c hdf5type.c hdf5internal.c hdf5create.c hdf5open.c \
|
||||
hdf5var.c nc4mem.c nc4memcb.c
|
||||
|
||||
|
||||
# Package this for cmake build.
|
||||
EXTRA_DIST = CMakeLists.txt
|
||||
|
||||
|
@ -48,6 +48,7 @@ nc4_create_file(const char *path, int cmode, size_t initialsz,
|
||||
int retval = NC_NOERR;
|
||||
NC_FILE_INFO_T* nc4_info = NULL;
|
||||
NC_HDF5_FILE_INFO_T *hdf5_info;
|
||||
|
||||
#ifdef USE_PARALLEL4
|
||||
NC_MPI_INFO *mpiinfo = NULL;
|
||||
MPI_Comm comm;
|
||||
|
@ -205,6 +205,7 @@ nc4_close_netcdf4_file(NC_FILE_INFO_T *h5, int abort, int extractmem)
|
||||
{
|
||||
dumpopenobjects(h5);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Free the HDF5-specific info. */
|
||||
if (h5->format_file_info)
|
||||
@ -228,6 +229,7 @@ dumpopenobjects(NC_FILE_INFO_T* h5)
|
||||
hdf5_info = (NC_HDF5_FILE_INFO_T *)h5->format_file_info;
|
||||
|
||||
nobjs = H5Fget_obj_count(hdf5_info->hdfid, H5F_OBJ_ALL);
|
||||
|
||||
/* Apparently we can get an error even when nobjs == 0 */
|
||||
if(nobjs < 0) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user