From 61d141952e793644152201b20aad7e9f604dbd13 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Thu, 19 Mar 2015 20:21:51 +0000 Subject: [PATCH] set the correct defines for the thread-safe HDF5 functions. Former-commit-id: 451931f9664da5a0930ce0f48585ec9885e1e97c --- src/common_io.c | 3 +++ src/parallel_io.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/common_io.c b/src/common_io.c index 8cc25a4409..e2e29a5967 100644 --- a/src/common_io.c +++ b/src/common_io.c @@ -31,6 +31,9 @@ #include <stddef.h> #include <hdf5.h> #include <math.h> +#ifdef WITH_MPI +#include <mpi.h> +#endif #include "const.h" #include "cycle.h" diff --git a/src/parallel_io.c b/src/parallel_io.c index bf6119a9b8..945b895490 100644 --- a/src/parallel_io.c +++ b/src/parallel_io.c @@ -23,6 +23,8 @@ #if defined(HAVE_HDF5) && defined(WITH_MPI) +/* Tell HDF5 that we're interested in using shared-memory parallel stuff. */ +#define H5_HAVE_PARALLEL /* Some standard headers. */ #include <stdio.h> -- GitLab