예제 #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))
}