Syntax:
#include "mpi.h"
int my_function(MPI_Comm comm) {
int msg, myid;
MPI_Errhandler errh, store_errh;
...
/* alten Errorhandler merken */
MPI_Errhandler_get(comm, &store_errh);
MPI_Errhandler_create((MPI_Handler_function *)(&my_errhandler), &errh);
MPI_Errhandler_set(comm, errh);
...
MPI_Errhandler_free(&errh);
/* Errorhandler wieder setzen */
MPI_Errhandler_set( comm, store_errh);
}
Beispiel