summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-06-17 16:38:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-06-17 16:38:43 (GMT)
commitfb562491d470db30b3087c21663c2a4a246223a6 (patch)
tree721372f2e9390b09c85e4b4cd6cf9affe6f2b2c2
parent9747f70f1f0e80f7541721b461de2aa4dad5e3d1 (diff)
downloadhdf5-fb562491d470db30b3087c21663c2a4a246223a6.zip
hdf5-fb562491d470db30b3087c21663c2a4a246223a6.tar.gz
hdf5-fb562491d470db30b3087c21663c2a4a246223a6.tar.bz2
[svn-r5652] Purpose:
Code cleanup Description: Use dataset transfer property list to hold information about the MPI types for the current transfer, instead of setting pseudo-global variables in the file's struct. Platforms tested: Linux 2.2.x (eirene) w/parallel & IRIX64 6.5 (modi4) w/parallel & FORTRAN
-rw-r--r--src/H5D.c5
-rw-r--r--src/H5Dprivate.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/H5D.c b/src/H5D.c
index cb731e8..763f520 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -98,6 +98,11 @@ H5D_xfer_t H5D_xfer_dflt = {
0, /*coalesce single reads into a read */
/*transaction */
#endif
+#ifdef H5_HAVE_PARALLEL
+ 0, /* Whether to use types for this I/O */
+ MPI_DATATYPE_NULL, /* MPI type for buffer (memory) */
+ MPI_DATATYPE_NULL, /* MPI type for file */
+#endif /* H5_HAVE_PARALLEL */
};
/* Interface initialization? */
diff --git a/src/H5Dprivate.h b/src/H5Dprivate.h
index fc4ae44..ca277a6 100644
--- a/src/H5Dprivate.h
+++ b/src/H5Dprivate.h
@@ -72,6 +72,11 @@ typedef struct H5D_xfer_t {
unsigned gather_reads; /*coalesce single reads into a read */
/*transaction */
#endif
+#ifdef H5_HAVE_PARALLEL
+ unsigned use_types; /* Whether to use types for this I/O */
+ MPI_Datatype btype; /* MPI type for buffer (memory) */
+ MPI_Datatype ftype; /* MPI type for file */
+#endif /* H5_HAVE_PARALLEL */
} H5D_xfer_t;
typedef struct H5D_t H5D_t;