Example #1
0
File: mpi.go Project: rwl/mpi
func Abort(comm C.MPI_Comm, errorcode int) {
	err := C.MPI_Abort(comm, C.int(errorcode))

	if err != 0 {
		log.Fatal(err)
	}
}
Example #2
0
File: mpi.go Project: npadmana/mpi
// Abort calls MPI_Abort
func Abort(comm Comm, err int) error {
	perr := C.MPI_Abort(comm, C.int(err))
	if perr != 0 {
		return errors.New("Error aborting!?!!")
	}
	return nil
}
Example #3
0
//Abort
//Terminates MPI execution environment.
func Abort(comm Comm, errorcode int) int {

	err := C.MPI_Abort(C.MPI_Comm(comm), C.int(errorcode))

	return int(err)
}
Example #4
0
func Abort(errorCode int) {
	C.MPI_Abort(COMM_WORLD, C.int(errorCode))
}