Status

class Status

Wrapper around MPI_Status.

Public Functions

inline Status()

Construct empty Status object.

inline Status(const MPI_Status &s)

Construct Status object from MPI_Status structure.

Parameters:

s – MPI_Status object used to initialize this object

inline int source() const

Get the source of the message.

Returns:

Source of the message (i.e. rank ID)

inline int tag() const

Get the message tag.

Returns:

Message tag

inline int error() const

Get the error code.

Returns:

Error code

template<typename T>
inline int count() const

Gets the number of “top level” elements.

Template Parameters:

T – datatype of each receive buffer element

Returns:

The number of “top level” elements

inline operator MPI_Status*()

Type cast operators so we can pass this class directly into the MPI API.