From 092dcd4e04c1e069fe63984cfc7d9f1a0da9e703 Mon Sep 17 00:00:00 2001 From: paboyle Date: Fri, 2 Jun 2017 22:50:25 +0100 Subject: [PATCH] MPI I/O only if MPI compiled --- lib/parallelIO/BinaryIO.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/parallelIO/BinaryIO.h b/lib/parallelIO/BinaryIO.h index e427a25b..8b8d4165 100644 --- a/lib/parallelIO/BinaryIO.h +++ b/lib/parallelIO/BinaryIO.h @@ -29,12 +29,16 @@ #ifndef GRID_BINARY_IO_H #define GRID_BINARY_IO_H - -#include "IldgIOtypes.h" +#if defined(GRID_COMMS_MPI) || defined(GRID_COMMS_MPI3) +#define USE_MPI_IO +#else +#undef USE_MPI_IO +#endif #ifdef HAVE_ENDIAN_H #include #endif + #include #include