summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorRobert Kim Yates <rkyates@llnl.gov>1998-08-17 15:20:56 (GMT)
committerRobert Kim Yates <rkyates@llnl.gov>1998-08-17 15:20:56 (GMT)
commita1e8ce1d81cbb8b6029c1bb972fcc527cd179f0d (patch)
tree88a5b2a2942c309949011084b019596f7929d0e2 /src/H5D.c
parent8ed18c9e73733939216251e1d154b18e7d34bad3 (diff)
downloadhdf5-a1e8ce1d81cbb8b6029c1bb972fcc527cd179f0d.zip
hdf5-a1e8ce1d81cbb8b6029c1bb972fcc527cd179f0d.tar.gz
hdf5-a1e8ce1d81cbb8b6029c1bb972fcc527cd179f0d.tar.bz2
[svn-r599] Added code to convert HDF dataspace selections to MPI datatypes.
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 21373fa..b96b900 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -27,6 +27,7 @@ static char RcsId[] = "@(#)$Revision$";
#include <H5MMprivate.h> /* Memory management */
#include <H5Oprivate.h> /* Object headers */
#include <H5Pprivate.h> /* Property lists */
+#include <H5Sprivate.h> /* Dataspace functions rky 980813 */
#include <H5Zprivate.h> /* Data filters */
#ifdef QAK
@@ -1339,6 +1340,25 @@ H5D_read(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space,
HGOTO_ERROR (H5E_DATASET, H5E_UNSUPPORTED, FAIL,
"unable to convert from file to memory data space");
}
+<<<<<<< H5D.c
+#ifdef QAK
+ printf("%s: check 1.0\n",FUNC);
+#endif /* QAK */
+
+#ifdef HAVE_PARALLEL
+ /* rky 980813 This is a temporary KLUGE.
+ * The sconv functions should be set by H5S_find,
+ * or we should use a different way to call the MPI-IO
+ * mem-and-file-dataspace-xfer functions
+ * (the latter in case the arguments to sconv_funcs
+ * turn out to be inappropriate for MPI-IO). */
+ if (dataset->ent.file->shared->access_parms->driver == H5F_LOW_MPIO) {
+ sconv_func.read = H5S_mpio_spaces_read;
+ }
+#endif /*HAVE_PARALLEL*/
+
+=======
+>>>>>>> 1.113
/*
* If there is no type conversion then try reading directly into the
@@ -1674,7 +1694,26 @@ H5D_write(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space,
HGOTO_ERROR (H5E_DATASET, H5E_UNSUPPORTED, FAIL,
"unable to convert from memory to file data space");
}
+<<<<<<< H5D.c
+#ifdef QAK
+ printf("%s: check 1.0\n",FUNC);
+#endif /* QAK */
+
+#ifdef HAVE_PARALLEL
+ /* rky 980813 This is a temporary KLUGE.
+ * The sconv functions should be set by H5S_find,
+ * or we should use a different way to call the MPI-IO
+ * mem-and-file-dataspace-xfer functions
+ * (the latter in case the arguments to sconv_funcs
+ * turn out to be inappropriate for MPI-IO). */
+ if (dataset->ent.file->shared->access_parms->driver == H5F_LOW_MPIO) {
+ sconv_func.write = H5S_mpio_spaces_write;
+ }
+#endif /*HAVE_PARALLEL*/
+
+=======
+>>>>>>> 1.113
/*
* If there is no type conversion then try writing directly from
* application buffer to file.