From ccd97f3d8f20768faaa7675041fff05ec9f79e89 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 12 Jul 1999 12:37:58 -0500 Subject: [svn-r1465] src/H5Fmpio.c: Removed the unnecessary #include of mpi.h and mpio.h. (They are included already in H5public.h when applicable.) Changed couple debug printing to be controlled like the others. src/H5public.h: Officially, mpio.h should be in mpi.h but MPIO are not always supported by the vendor yet. Make the #include of mpio.h conditional when it is not in mpi.h. testpar/testphdf5.h: Removed the unnecessary #include of mpi.h and mpio.h. (They are included already in H5public.h when applicable.) --- src/H5Fmpio.c | 8 ++++---- src/H5public.h | 2 ++ testpar/testphdf5.h | 2 -- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/H5Fmpio.c b/src/H5Fmpio.c index 971ced5..b5f3858 100644 --- a/src/H5Fmpio.c +++ b/src/H5Fmpio.c @@ -59,8 +59,6 @@ */ /* const hbool_t H5F_mpio_avail = FALSE; */ #else /* HAVE_PARALLEL */ -#include -#include #define PABLO_MASK H5Fmpio_mask static intn interface_initialize_g = 0; @@ -603,7 +601,8 @@ H5F_mpio_read(H5F_low_t *lf, H5F_access_t *access_parms, case H5D_XFER_COLLECTIVE: #ifdef H5Fmpio_DEBUG - printf("%s: using MPIO collective mode\n", FUNC); + if (H5F_mpio_Debug[(int)'t']) + fprintf(stdout, "%s: using MPIO collective mode\n", FUNC); #endif mpierr = MPI_File_read_at_all ( lf->u.mpio.f, mpi_off, (void*) buf, size_i, buf_type, &mpi_stat ); @@ -876,7 +875,8 @@ H5F_mpio_write(H5F_low_t *lf, H5F_access_t *access_parms, case H5D_XFER_COLLECTIVE: #ifdef H5Fmpio_DEBUG - printf("%s: using MPIO collective mode\n", FUNC); + if (H5F_mpio_Debug[(int)'t']) + fprintf(stdout, "%s: using MPIO collective mode\n", FUNC); #endif mpierr = MPI_File_write_at_all( lf->u.mpio.f, mpi_off, (void*) buf, size_i, buf_type, &mpi_stat ); diff --git a/src/H5public.h b/src/H5public.h index 837f13a..da67b5c 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -34,8 +34,10 @@ static char RcsId[] = "@(#)$Revision$"; #endif #ifdef HAVE_PARALLEL # include +#ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already*/ # include #endif +#endif #include /* Version numbers */ diff --git a/testpar/testphdf5.h b/testpar/testphdf5.h index dd4db92..399f3b5 100644 --- a/testpar/testphdf5.h +++ b/testpar/testphdf5.h @@ -6,8 +6,6 @@ #include #include #include -#include -#include /* Define some handy debugging shorthands, routines, ... */ /* debugging tools */ -- cgit v0.12