2004-01-25 02:17:43 +03:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "lam_config.h"
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
2004-03-19 21:01:03 +03:00
|
|
|
#include "errhandler/errhandler.h"
|
|
|
|
#include "communicator/communicator.h"
|
2004-01-25 02:17:43 +03:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
|
|
|
#pragma weak MPI_Errhandler_free = PMPI_Errhandler_free
|
|
|
|
#endif
|
|
|
|
|
2004-03-19 20:29:39 +03:00
|
|
|
|
|
|
|
int MPI_Errhandler_free(MPI_Errhandler *errhandler)
|
|
|
|
{
|
2004-03-19 21:01:03 +03:00
|
|
|
/* Error checking */
|
|
|
|
|
|
|
|
if (MPI_PARAM_CHECK) {
|
|
|
|
if (NULL == errhandler ||
|
|
|
|
lam_errhandler_is_intrinsic(*errhandler)) {
|
|
|
|
return LAM_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_ARG,
|
|
|
|
"MPI_Errhandler_free");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* We have a valid errhandler, release it */
|
|
|
|
|
|
|
|
OBJ_RELEASE(*errhandler);
|
|
|
|
*errhandler = MPI_ERRHANDLER_NULL;
|
|
|
|
|
|
|
|
/* All done */
|
|
|
|
|
2004-03-19 20:29:39 +03:00
|
|
|
return MPI_SUCCESS;
|
2004-01-25 02:17:43 +03:00
|
|
|
}
|