func Wait(request *Request, status *Status) { err := C.MPI_Wait((*C.MPI_Request)(request), (*C.MPI_Status)(status)) if err != 0 { log.Fatal(err) } }
//Wait //Waits for an MPI send or receive to complete. func Wait(request *Request) (Status, int) { var status C.MPI_Status var cRequest *C.MPI_Request cRequest = (*C.MPI_Request)(request) err := C.MPI_Wait(cRequest, &status) return Status(status), int(err) }