summaryrefslogtreecommitdiffstats
path: root/src/H5Smpio.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-11-05 16:31:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-11-05 16:31:02 (GMT)
commit22f38d627e0f75ca92731ef8df75b2df3ad8aa85 (patch)
tree253fcf1b8a5675ce8ef45def44af17c7840e79e3 /src/H5Smpio.c
parent3ed57b880ab78490678eb1824b623beb1930eeb5 (diff)
downloadhdf5-22f38d627e0f75ca92731ef8df75b2df3ad8aa85.zip
hdf5-22f38d627e0f75ca92731ef8df75b2df3ad8aa85.tar.gz
hdf5-22f38d627e0f75ca92731ef8df75b2df3ad8aa85.tar.bz2
[svn-r6055] Purpose:
New feature Description: Add support for scalar dataspaces in parallel I/O. Platforms tested: Tested h5committest {arabica (fortran), eirene (fortran, C++) modi4 (parallel, fortran)} Also, FreeBSD 4.7 (sleipnir) serial & parallel Misc. update: Update release_docs/RELEASE for bug fixes, new features, etc.
Diffstat (limited to 'src/H5Smpio.c')
-rw-r--r--src/H5Smpio.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/H5Smpio.c b/src/H5Smpio.c
index c4996a4..9b3f132 100644
--- a/src/H5Smpio.c
+++ b/src/H5Smpio.c
@@ -721,10 +721,6 @@ H5S_mpio_space_type( const H5S_t *space, size_t elmt_size, hbool_t prefer_derive
/* Creat MPI type based on the kind of selection */
switch (space->extent.type) {
case H5S_SCALAR:
- /* not yet implemented */
- ret_value = FAIL;
- break;
-
case H5S_SIMPLE:
switch(space->select.type) {
case H5S_SEL_NONE:
@@ -1039,8 +1035,9 @@ H5S_mpio_opt_possible( const H5S_t *mem_space, const H5S_t *file_space, const un
assert(mem_space);
assert(file_space);
- /* Check whether these are both simple dataspaces */
- if (H5S_SIMPLE!=mem_space->extent.type || H5S_SIMPLE!=file_space->extent.type)
+ /* Check whether these are both simple or scalar dataspaces */
+ if (!((H5S_SIMPLE==mem_space->extent.type || H5S_SCALAR==mem_space->extent.type)
+ && (H5S_SIMPLE==file_space->extent.type || H5S_SCALAR==file_space->extent.type)))
HGOTO_DONE(FALSE);
/* Check whether both selections are "regular" */