summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-01-29 19:36:16 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-01-29 19:36:16 (GMT)
commit28e23330df9b9d35c1c13e1f983f66b4a98afe36 (patch)
tree99483b64cdc89e319b68d57c2ad99da250712529 /src/H5D.c
parent5761b90f63b5f3d69e914cfbe7a4619cce9bfc4b (diff)
downloadhdf5-28e23330df9b9d35c1c13e1f983f66b4a98afe36.zip
hdf5-28e23330df9b9d35c1c13e1f983f66b4a98afe36.tar.gz
hdf5-28e23330df9b9d35c1c13e1f983f66b4a98afe36.tar.bz2
[svn-r197] Changes since 19980129
---------------------- ./config/freebds2.2.1 ./config/irix64 ./config/linux Added -DH5T_DEBUG to the debugging flags. Also changed `true' to `:' for the Irix64 ranlib program. This turns on printing of data type conversion statistics when the program exits. ./html/Datatypes.html Fixed documentation for data conversion functions and updated examples. ./src/H5D.c The I/O pipeline updates data type conversion statistics. ./src/H5T.c ./src/H5Tconv.c ./src/H5Tpkg.h ./src/H5Tpublic.h Cleaned up data type conversion registration interface.
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 7d1a781..5e31e3f 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -402,7 +402,7 @@ H5Dget_space (hid_t dataset_id)
*/
herr_t
H5Dread(hid_t dataset_id, hid_t mem_type_id, hid_t mem_space_id,
- hid_t file_space_id, hid_t xfer_parms_id, void *buf /*out */ )
+ hid_t file_space_id, hid_t xfer_parms_id, void *buf/*out*/)
{
H5D_t *dataset = NULL;
const H5T_t *mem_type = NULL;
@@ -967,10 +967,13 @@ H5D_read(H5D_t *dataset, const H5T_t *mem_type, const H5P_t *mem_space,
/*
* Perform data type conversion.
*/
+ cdata->command = H5T_CONV_CONV;
+ cdata->ncalls++;
if ((tconv_func) (src_id, dst_id, cdata, nelmts, tconv_buf, bkg_buf)<0) {
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL,
"data type conversion failed");
}
+ cdata->nelmts += nelmts;
/*
* Scatter the data into memory.
@@ -1104,10 +1107,13 @@ H5D_write(H5D_t *dataset, const H5T_t *mem_type, const H5P_t *mem_space,
/*
* Perform data type conversion.
*/
+ cdata->command = H5T_CONV_CONV;
+ cdata->ncalls++;
if ((tconv_func) (src_id, dst_id, cdata, nelmts, tconv_buf, bkg_buf)<0) {
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL,
"data type conversion failed");
}
+ cdata->nelmts += nelmts;
/*
* Scatter the data out to the file.