Return Status
[Point-to-Point Communication]

Collaboration diagram for Return Status:

Detailed Description

Receiving operations return a status-object holding information about the message.

There are three Fields of the status-Struct which are predefined by the MPI-Standard: MOC_SOURCE gives the message-source, MOC_TAG gives the message-tag and MOC_ERROR gives an error-code (not implemented by MOC at the moment). To get the number of element the function MOC_Get_count should be used.


Data Structures

struct  MOC_Status_struct
 Structure holding information about a received message. More...

Typedefs

typedef struct MOC_Status_struct MOC_Status
 Structure holding information about a received message.

Functions

int MOC_Get_count (MOC_Status *status, MOC_Datatype datatype, int *count)
 Gets the number of received elements which is encoded in MOC_Status.


Typedef Documentation

typedef struct MOC_Status_struct MOC_Status

Structure holding information about a received message.


Function Documentation

int MOC_Get_count ( MOC_Status *  status,
MOC_Datatype  datatype,
int *  count 
)

Gets the number of received elements which is encoded in MOC_Status.

Parameters:
status in status-object
datatype in Type of received elements
count out Number of received elements
Return values:
MOC_SUCCESS No error; MPI routine completed successfully.
... error-code

Definition at line 3 of file moc_get_count.c.

References MOC_Status_struct::message_size, and MOC_ERR_ARG.


Generated on Thu Feb 12 13:50:49 2009 for MPI On Cell (Documentation) by  doxygen 1.5.6