RPN_COMM

(RPN_COMM_recv)


SUBROUTINE RPN_COMM_recv( buf, count, datatype, source, tag, comm, status, ierr )


ARGUMENTS

datatype:  character (see table below)
comm:      character (see table below)
status:    integer

See the MPI documentation for MPI_Recv


DESCRIPTION

Stub for MPI_recv routine using the same calling sequence, except for datatypes, operators and communicators. Those are replaced by an equivalent string, described in the table below:
 
Types supported Operators supported Communicators recognized
"MPI_CHARACTER"* "MPI_OP_NULL" "EW"  (east-west)
"MPI_INTEGER" "MPI_MAX" "NS"  (north-south)
"MPI_INTEGER2" "MPI_MIN" "GRID" (full domain grid)
"MPI_REAL" "MPI_SUM" "BLOC" (inside local block)
"MPI_REAL8" "MPI_PROD" "BLOCMASTER" (between blocks master PEs)
"MPI_REAL4" "MPI_LAND" "ALL" (every PE)
"MPI_DOUBLE_PRECISION" "MPI_BAND" "DOMM", equivalent to "GRID"
"MPI_COMPLEX" "MPI_LOR" "DEFO" default communicator
"MPI_DOUBLE_COMPLEX" "MPI_BOR"
"MPI_LOGICAL" "MPI_LXOR"
"MPI_BXOR"
"MPI_MAXLOC"
"MPI_MINLOC"
* Note: MPI_CHARACTER for/pour RPN_COMM_bcastc only/seulement

This RPN_COMM routine receive the message tagged with "tag" from the "source" PE.

N.b.: the status item, normally an integer of size MPI_STATUS_SIZE is replaced here by an integer returning the number received elements.
 


EXAMPLE

1- MPI_recv of a buffer of 15 elements from PE #3, message sent with tag = 12345:

call RPN_COMM_recv(buffer, 15, "mpi_integer", 3 , 12345, "GRID", status, ierr)


SEE ALSO

RPN_COMM_* 

Return to RPN Libraries home page