示例#1
0
文件: mpi.go 项目: rwl/mpi
func Abort(comm C.MPI_Comm, errorcode int) {
	err := C.MPI_Abort(comm, C.int(errorcode))

	if err != 0 {
		log.Fatal(err)
	}
}
示例#2
0
文件: mpi.go 项目: 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
}
示例#3
0
文件: init.go 项目: jmptrader/go-mpi
//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)
}
示例#4
0
文件: mpi.go 项目: ttjoseph/mmdevel
func Abort(errorCode int) {
	C.MPI_Abort(COMM_WORLD, C.int(errorCode))
}