Skip to content

Commit

Permalink
clean the code for H5Z_SZ.c a little bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
disheng222 committed Aug 21, 2022
1 parent 32bf2db commit 32bd7fe
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions hdf5-filter/H5Z-SZ/src/H5Z_SZ.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ char cfgFile[256] = "sz.config";

static int h5z_sz_was_registered = 0;

static size_t H5Z_filter_sz(unsigned int flags, size_t cd_nelmts,
const unsigned int cd_values[],
size_t nbytes, size_t *buf_size, void **buf);
static herr_t H5Z_sz_set_local(hid_t dcpl_id, hid_t type_id, hid_t space_id);

const H5Z_class2_t H5Z_SZ[1] = {{
H5Z_CLASS_T_VERS, /* H5Z_class_t version */
H5Z_FILTER_SZ, /* Filter id number */
Expand Down Expand Up @@ -406,7 +401,7 @@ static herr_t H5Z_sz_set_local(hid_t dcpl_id, hid_t type_id, hid_t chunk_space_i

if(mem_cd_nelmts==0) //this means that the error information is missing from the cd_values
{
H5Z_SZ_Init(cfgFile);;
H5Z_SZ_Init(cfgFile);
}
else //this means that the error information is included in the cd_values
{
Expand Down Expand Up @@ -915,3 +910,5 @@ void init_dims_chunk(int dim, hsize_t dims[5], hsize_t chunk[5], size_t nbEle, s
}




0 comments on commit 32bd7fe

Please sign in to comment.