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:
Frank Willmore 2017-05-25 13:30:54 -05:00
commit 53c5b41ec2

View File

@ -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;