diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5repack/testh5repack_filters.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/h5repack/testh5repack_filters.c b/tools/h5repack/testh5repack_filters.c index f8efa74..1cc0e68 100644 --- a/tools/h5repack/testh5repack_filters.c +++ b/tools/h5repack/testh5repack_filters.c @@ -142,6 +142,21 @@ int make_filters(hid_t loc_id) goto out; /*------------------------------------------------------------------------- + * checksum + *------------------------------------------------------------------------- + */ +#if 1 + /* remove the filters from the dcpl */ + if (H5Premove_filter(dcpl,H5Z_FILTER_ALL)<0) + goto out; + /* set the checksum filter */ + if (H5Pset_fletcher32(dcpl)<0) + goto out; + if (make_dset(loc_id,"dset_fletcher32",sid,dcpl,buf)<0) + goto out; +#endif + +/*------------------------------------------------------------------------- * shuffle + SZIP *------------------------------------------------------------------------- */ |