summaryrefslogtreecommitdiffstats
path: root/src/H5FDmpiposix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FDmpiposix.c')
-rw-r--r--src/H5FDmpiposix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5FDmpiposix.c b/src/H5FDmpiposix.c
index 63b445b..f1a2768 100644
--- a/src/H5FDmpiposix.c
+++ b/src/H5FDmpiposix.c
@@ -53,6 +53,8 @@
# include <gpfs_fcntl.h>
#endif
+#ifdef H5_HAVE_PARALLEL
+
/*
* The driver identification number, initialized at runtime if H5_HAVE_PARALLEL
* is defined. This allows applications to still have the H5FD_MPIPOSIX
@@ -61,8 +63,6 @@
*/
static hid_t H5FD_MPIPOSIX_g = 0;
-#ifdef H5_HAVE_PARALLEL
-
/* File operations */
#define OP_UNKNOWN 0
#define OP_READ 1
@@ -569,7 +569,7 @@ H5FD_mpiposix_open(const char *name, unsigned flags, hid_t fapl_id,
/* Obtain a pointer to mpiposix-specific file access properties */
if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a file access property list");
- if (H5P_DEFAULT==fapl_id || H5FD_MPIPOSIX!=H5P_get_driver(plist)) {
+ if (H5P_FILE_ACCESS_DEFAULT==fapl_id || H5FD_MPIPOSIX!=H5P_get_driver(plist)) {
_fa.comm = MPI_COMM_SELF; /*default*/
fa = &_fa;
} /* end if */