summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrank Willmore <Frank.Willmore@hdfgroup.org>2017-05-25 18:30:54 (GMT)
committerFrank Willmore <Frank.Willmore@hdfgroup.org>2017-05-25 18:30:54 (GMT)
commit53c5b41ec2068aa45982af071a1e3c707326851f (patch)
tree5aa67f30b67b0dd78507b1a097af585c7e969c62 /src
parent23dfa244398c32d06e695b51f494d86a6d4ce091 (diff)
parent1ee90786196c10c2c616a9fb4b8b1f92ebefa1f2 (diff)
downloadhdf5-53c5b41ec2068aa45982af071a1e3c707326851f.zip
hdf5-53c5b41ec2068aa45982af071a1e3c707326851f.tar.gz
hdf5-53c5b41ec2068aa45982af071a1e3c707326851f.tar.bz2
Merge pull request #534 in HDFFV/hdf5 from ~FRANK.WILLMORE/hdf5:fix-set-mpi-err-handler to develop
* commit '1ee90786196c10c2c616a9fb4b8b1f92ebefa1f2': updated MPI error handling call for MPICH2 standard cleanup enabled MPI error handling added test file
Diffstat (limited to 'src')
-rw-r--r--src/H5FDmpi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5FDmpi.c b/src/H5FDmpi.c
index 16be455..98e1b1a 100644
--- a/src/H5FDmpi.c
+++ b/src/H5FDmpi.c
@@ -315,6 +315,11 @@ H5FD_mpi_comm_info_dup(MPI_Comm comm, MPI_Info info, MPI_Comm *comm_new, MPI_Inf
info_dup = info;
}
+ /* Set MPI_ERRORS_RETURN on comm_dup so that MPI failures are not fatal,
+ and return codes can be checked and handled. May 23, 2017 FTW */
+ if (MPI_SUCCESS != (mpi_code = MPI_Comm_set_errhandler(comm_dup, MPI_ERRORS_RETURN)))
+ HMPI_GOTO_ERROR(FAIL, "MPI_Errhandler_set failed", mpi_code)
+
/* copy them to the return arguments */
*comm_new = comm_dup;
*info_new = info_dup;