summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-09-03 00:15:57 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-09-03 00:15:57 (GMT)
commitcb0a0eb41eb61e75ddb7a10532e910394babe995 (patch)
treec0122b29efeacfc3d8da4c8b07bdd7ce0065db9e /src/H5D.c
parentd0c5506d95aee19238c21d5cde4ee19ba0539f2a (diff)
downloadhdf5-cb0a0eb41eb61e75ddb7a10532e910394babe995.zip
hdf5-cb0a0eb41eb61e75ddb7a10532e910394babe995.tar.gz
hdf5-cb0a0eb41eb61e75ddb7a10532e910394babe995.tar.bz2
[svn-r1627] Cleanup some minor bugs in the MPIO file-driver ported by Robb.
It is working now. Still need to tie up some loose ends.
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 423e739..d4d0c37 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -1509,14 +1509,14 @@ H5D_read(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space,
#ifdef HAVE_PARALLEL
{
- /* Collective access is not permissible with the MPIO driver */
+ /* Collective access is not permissible without the MPIO driver */
H5FD_mpio_dxpl_t *dx;
- if (H5FD_MPIO==dataset->ent.file->shared->lf->driver_id &&
- H5FD_MPIO==xfer_parms->driver_id &&
+ if (H5FD_MPIO==xfer_parms->driver_id &&
(dx=xfer_parms->driver_info) &&
H5FD_MPIO_COLLECTIVE==dx->xfer_mode) {
- HGOTO_ERROR (H5E_DATASET, H5E_UNSUPPORTED, FAIL,
- "collective access not permissible");
+ if (H5FD_MPIO!=dataset->ent.file->shared->lf->driver_id)
+ HGOTO_ERROR (H5E_DATASET, H5E_UNSUPPORTED, FAIL,
+ "collective access for MPIO driver only");
}
}
#endif
@@ -1916,14 +1916,14 @@ H5D_write(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space,
#ifdef HAVE_PARALLEL
{
- /* Collective access is not permissible with the MPIO driver */
+ /* Collective access is not permissible without the MPIO driver */
H5FD_mpio_dxpl_t *dx;
- if (H5FD_MPIO==dataset->ent.file->shared->lf->driver_id &&
- H5FD_MPIO==xfer_parms->driver_id &&
+ if (H5FD_MPIO==xfer_parms->driver_id &&
(dx=xfer_parms->driver_info) &&
H5FD_MPIO_COLLECTIVE==dx->xfer_mode) {
- HGOTO_ERROR (H5E_DATASET, H5E_UNSUPPORTED, FAIL,
- "collective access not permissible");
+ if (H5FD_MPIO!=dataset->ent.file->shared->lf->driver_id)
+ HGOTO_ERROR (H5E_DATASET, H5E_UNSUPPORTED, FAIL,
+ "collective access for MPIO driver only");
}
}
#endif