mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
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
This commit is contained in:
commit
53c5b41ec2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user