1
1
openmpi/src/mpi/c/errhandler_free.c

38 строки
756 B
C
Исходник Обычный вид История

/*
* $HEADER$
*/
#include "lam_config.h"
#include "mpi.h"
#include "mpi/c/bindings.h"
#include "errhandler/errhandler.h"
#include "communicator/communicator.h"
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
#pragma weak MPI_Errhandler_free = PMPI_Errhandler_free
#endif
int MPI_Errhandler_free(MPI_Errhandler *errhandler)
{
/* 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 */
return MPI_SUCCESS;
}