MPIGetelements
MPI_Get_elements is a function in the MPI (Message Passing Interface) standard used to determine the number of basic elements received in a message, according to a specified datatype. It is typically called after a successful probe operation (MPI_Probe or MPI_Iprobe) to learn how much data was received without performing the actual receive.
In C, the function signature is: int MPI_Get_elements(MPI_Status *status, MPI_Datatype datatype, int *elements). The status argument
The value returned in elements represents the number of basic elements contained in the received message, not
A variant for large counts is MPI_Get_elements_x, which uses MPI_Count for the elements parameter to avoid overflow
See also MPI_Probe, MPI_Iprobe, and MPI_Get_count for related mechanisms to query message size and contents before