summaryrefslogtreecommitdiffstats
path: root/src/H5Pdcpl.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2010-05-25 20:40:38 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2010-05-25 20:40:38 (GMT)
commit842d0d310bd7506a5676412d61e94007a580e666 (patch)
treec61f0f5301c8c2ec75997777b4f4fc7f4292e717 /src/H5Pdcpl.c
parentfdaeddcdcd5191f6cd5b4febf65280a8a68faaeb (diff)
downloadhdf5-842d0d310bd7506a5676412d61e94007a580e666.zip
hdf5-842d0d310bd7506a5676412d61e94007a580e666.tar.gz
hdf5-842d0d310bd7506a5676412d61e94007a580e666.tar.bz2
[svn-r18895] Purpose: Improve allocation performance of filtered datasets with non-default VL
fill values. Description: Previously, H5D_chunk_allocate would, if a dataset were filtered and had a non-default VL fill value, allocate a new buffer for every chunk. Changed H5D_chunk_allocate to reuse the existing buffer if possible. Also other miscellaneous cleanup. Tested: jam, linew, amani (h5committest)
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r--src/H5Pdcpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c
index 4b3e0a8..6fe1b39 100644
--- a/src/H5Pdcpl.c
+++ b/src/H5Pdcpl.c
@@ -1363,7 +1363,7 @@ H5Pset_scaleoffset(hid_t plist_id, H5Z_SO_scale_type_t scale_type, int scale_fac
HGOTO_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset creation property list")
if(scale_factor < 0)
- HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "scale factor must be > 0")
+ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "scale factor must be >= 0")
if(scale_type!=H5Z_SO_FLOAT_DSCALE && scale_type!=H5Z_SO_FLOAT_ESCALE && scale_type!=H5Z_SO_INT)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid scale type")