Example #1
0
//Errhandler_free
//Frees an MPI-style error handler.
func Errhandler_free(errhandler Errhandler) (Errhandler, int) {

	cErrhandler := C.MPI_Errhandler(errhandler)

	err := C.MPI_Errhandler_free(&cErrhandler)

	return Errhandler(cErrhandler), int(err)
}
Example #2
0
//Comm_set_errhandler
//Set the error handler for a communicator
func Comm_set_errhandler(comm Comm, errhandler Errhandler) (Comm, int) {

	cComm := C.MPI_Comm(comm)
	cErrhandler := C.MPI_Errhandler(errhandler)
	err := C.MPI_Comm_set_errhandler(cComm, cErrhandler)

	return Comm(cComm), int(err)
}
Example #3
0
//File_set_errhandler
//Set the error handler for an MPI file.
func File_set_errhandler(fh File, errhandler Errhandler) int {

	err := C.MPI_File_set_errhandler(C.MPI_File(fh), C.MPI_Errhandler(errhandler))

	return int(err)
}