diff options
author | Robert Kim Yates <rkyates@llnl.gov> | 1998-08-17 15:20:56 (GMT) |
---|---|---|
committer | Robert Kim Yates <rkyates@llnl.gov> | 1998-08-17 15:20:56 (GMT) |
commit | a1e8ce1d81cbb8b6029c1bb972fcc527cd179f0d (patch) | |
tree | 88a5b2a2942c309949011084b019596f7929d0e2 /src/H5D.c | |
parent | 8ed18c9e73733939216251e1d154b18e7d34bad3 (diff) | |
download | hdf5-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.c | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -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. |