summaryrefslogtreecommitdiffstats
path: root/src/H5Farray.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>1999-12-21 22:17:55 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>1999-12-21 22:17:55 (GMT)
commit173c0b6fe54eef89988048c928b703544d8baf92 (patch)
treeb74e9cf7cb454ac925d4b71883c6b381b46aee86 /src/H5Farray.c
parentada76449ba652add37f72608c714943f9d4fdd9d (diff)
downloadhdf5-173c0b6fe54eef89988048c928b703544d8baf92.zip
hdf5-173c0b6fe54eef89988048c928b703544d8baf92.tar.gz
hdf5-173c0b6fe54eef89988048c928b703544d8baf92.tar.bz2
[svn-r1925] DPSS is checked in.
Diffstat (limited to 'src/H5Farray.c')
-rw-r--r--src/H5Farray.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/H5Farray.c b/src/H5Farray.c
index 02a39d3..f2b79f1 100644
--- a/src/H5Farray.c
+++ b/src/H5Farray.c
@@ -143,6 +143,9 @@ H5F_arr_read(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout,
#ifdef H5_HAVE_PARALLEL
H5FD_mpio_xfer_t xfer_mode=H5FD_MPIO_INDEPENDENT;
#endif
+#ifdef COALESCE_READS
+ H5F_xfer_t *xfer_parms; /*transfer property list*/
+#endif
FUNC_ENTER(H5F_arr_read, FAIL);
@@ -270,7 +273,21 @@ H5F_arr_read(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout,
}
#endif
+#ifdef COALESCE_READS
+ /* Get the dataset transfer property list */
+ if (H5P_DEFAULT == dxpl_id) {
+ xfer_parms = &H5F_xfer_dflt;
+ } else if (H5P_DATA_XFER != H5P_get_class (dxpl_id) ||
+ NULL == (xfer_parms = H5I_object (dxpl_id))) {
+ HRETURN_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "not xfer parms");
+ }
+
+ for (z=0, xfer_parms->gather_reads = nelmts - 1;
+ z<nelmts;
+ z++, xfer_parms->gather_reads--) {
+#else
for (z=0; z<nelmts; z++) {
+#endif
/* Read from file */
if (efl && efl->nused>0) {