diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-11-21 15:39:06 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-11-21 15:39:06 (GMT) |
commit | b067b416b21013d38dff9f46948b6db3862450c1 (patch) | |
tree | 9d870f943711fb16f28aaf54da4c90c8045b1e04 /tools/h5repack/h5repack_copy.c | |
parent | a4487662b0ee9443951642c38bcd5c2478ff24ef (diff) | |
download | hdf5-b067b416b21013d38dff9f46948b6db3862450c1.zip hdf5-b067b416b21013d38dff9f46948b6db3862450c1.tar.gz hdf5-b067b416b21013d38dff9f46948b6db3862450c1.tar.bz2 |
[svn-r16112] #1375. Define a default chunk whose size is manageable. Defined currently as the same size of hyperslab (that compares the dimension sizes against a predefined constant size and chooses the minimum between the two)
Tested : linux, windows
Diffstat (limited to 'tools/h5repack/h5repack_copy.c')
-rw-r--r-- | tools/h5repack/h5repack_copy.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c index 312f085..b165dc7 100644 --- a/tools/h5repack/h5repack_copy.c +++ b/tools/h5repack/h5repack_copy.c @@ -23,9 +23,6 @@ extern char *progname; -#if 0 -#define H5REPACK_DEBUG -#endif /*------------------------------------------------------------------------- * macros @@ -41,7 +38,7 @@ static void print_dataset_info(hid_t dcpl_id,char *objname,double per, int pr); static int do_copy_objects(hid_t fidin,hid_t fidout,trav_table_t *travt,pack_opt_t *options); static int copy_attr(hid_t loc_in,hid_t loc_out,pack_opt_t *options); static int copy_user_block(const char *infile, const char *outfile, hsize_t size); -#if defined (H5REPACK_DEBUG) +#if defined (H5REPACK_DEBUG_USER_BLOCK) static void print_user_block(const char *filename, hid_t fid); #endif @@ -212,7 +209,7 @@ int copy_objects(const char* fnamein, -#if defined (H5REPACK_DEBUG) +#if defined (H5REPACK_DEBUG_USER_BLOCK) print_user_block(fnamein,fidin); #endif @@ -713,7 +710,13 @@ int do_copy_objects(hid_t fidin, /* apply the filter */ if (apply_s) { - if (apply_filters(travt->objs[i].name,rank,dims,dcpl_out,options,&has_filter) < 0) + if (apply_filters(travt->objs[i].name, + rank, + dims, + msize, + dcpl_out, + options, + &has_filter) < 0) goto error; } @@ -1453,7 +1456,7 @@ done: * *------------------------------------------------------------------------- */ -#if defined (H5REPACK_DEBUG) +#if defined (H5REPACK_DEBUG_USER_BLOCK) static void print_user_block(const char *filename, hid_t fid) { |