summaryrefslogtreecommitdiffstats
path: root/src/H5Fmpio.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-05-25 17:31:51 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-05-25 17:31:51 (GMT)
commit9282a3e3575d7e3af855bea6ddd4d1a0ba511671 (patch)
treedcf3c131dc21be42c403bfbd22e1eea16ff04388 /src/H5Fmpio.c
parent20811af57b59f90ddd9be565595c0db5371c0116 (diff)
downloadhdf5-9282a3e3575d7e3af855bea6ddd4d1a0ba511671.zip
hdf5-9282a3e3575d7e3af855bea6ddd4d1a0ba511671.tar.gz
hdf5-9282a3e3575d7e3af855bea6ddd4d1a0ba511671.tar.bz2
[svn-r1276] H5D.c:
H5F.c: H5Flow.c: H5Fprivate.h: Joined work by Quincey, Robb and me to eliminate the initial writes of BOOTBLOCK when the file is first created. Also, eliminate the repeatedly encoding of BOOTBLOCK in the flushing code. Introduced the eof_written flag to indicate when it is not necessary to go do a dumb write at eof. (But something is not right if the userblock is not zero.) H5Fmpio.c: Added code to allow setting the MPIO debug output mask via the environment variable H5F_mpio_Debug.
Diffstat (limited to 'src/H5Fmpio.c')
-rw-r--r--src/H5Fmpio.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/H5Fmpio.c b/src/H5Fmpio.c
index 753d6ca..b960741 100644
--- a/src/H5Fmpio.c
+++ b/src/H5Fmpio.c
@@ -328,6 +328,17 @@ H5F_mpio_open(const char *name, const H5F_access_t *access_parms, uintn flags,
if (flags&H5F_ACC_EXCL) mpi_amode |= MPI_MODE_EXCL;
#ifdef H5Fmpio_DEBUG
+ {
+ /* set debug mask */
+ /* Should this be done in H5F global initialization instead of here? */
+ const char *s = HDgetenv ("H5F_mpio_Debug");
+ if (s) {
+ while (*s){
+ H5F_mpio_Debug[(int)*s]++;
+ s++;
+ }
+ }
+ }
/* Check for debug commands in the info parameter */
{ char debug_str[128];
int infoerr, flag, i;