With 'mpi_send_receive', a processor can send an array to another processor (nonblocking exchange). These routines encapsulate MPI calls for sake of simplicity.
Generic interfaces:
or
'array', 'array_from', and 'array_to' can be 'integer', 'double precision' or 'logical' arrays. The rank of these arrays can be 1, 2, 3, or 4.
Warning: 'array_sent' and 'array_recv' must have the same rank and type.
Example for the first interface:
Example for the second interface: