diff options
Diffstat (limited to 'tools/h5repack/testh5repack_filters.c')
-rw-r--r-- | tools/h5repack/testh5repack_filters.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tools/h5repack/testh5repack_filters.c b/tools/h5repack/testh5repack_filters.c index df2ba80..b285b28 100644 --- a/tools/h5repack/testh5repack_filters.c +++ b/tools/h5repack/testh5repack_filters.c @@ -23,35 +23,6 @@ #define RANK 2 /*------------------------------------------------------------------------- - * Function: make_dset - * - * Purpose: utility function to create and write a dataset in LOC_ID - *------------------------------------------------------------------------- - */ - -static -int make_dset(hid_t loc_id,const char *name,hid_t sid, hid_t dcpl,void *buf) -{ - hid_t dsid; - /* create the dataset */ - if((dsid = H5Dcreate (loc_id,name,H5T_NATIVE_INT,sid,dcpl))<0) - return -1; - /* write */ - if(H5Dwrite(dsid,H5T_NATIVE_INT,H5S_ALL,H5S_ALL,H5P_DEFAULT,buf)<0) - goto out; - /* close */ - if(H5Dclose(dsid)<0) - return -1; - return 0; - out: - H5E_BEGIN_TRY { - H5Dclose(dsid); - } H5E_END_TRY; - return -1; - -} - -/*------------------------------------------------------------------------- * Function: make_filters * * Purpose: make several datasets with filters in location LOC_ID |