1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use bindings::{ompi_status_public_t, MPI_Status};
use bindings::consts::UNDEFINED;

pub const STATUS_IGNORE: Option<MPI_Status> = None;

/// Creates new MPI_Status.
pub fn new() -> MPI_Status {
  ompi_status_public_t {
    source: UNDEFINED,
    tag: UNDEFINED,
    err: UNDEFINED,
    cancelled: 0,
    count: 0
  }
}