Simultaneously send and receive a value from another process (which need not be the same).

Namespace:  MPI
Assembly:  MPI (in MPI.dll)
Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public void SendReceive<T>(
	T inValue,
	int dest,
	int sendTag,
	int source,
	int recvTag,
	out T outValue,
	out CompletedStatus status
)
Visual Basic (Declaration)
Public Sub SendReceive(Of T) ( _
	inValue As T, _
	dest As Integer, _
	sendTag As Integer, _
	source As Integer, _
	recvTag As Integer, _
	<OutAttribute> ByRef outValue As T, _
	<OutAttribute> ByRef status As CompletedStatus _
)
Visual C++
public:
generic<typename T>
void SendReceive(
	T inValue, 
	int dest, 
	int sendTag, 
	int source, 
	int recvTag, 
	[OutAttribute] T% outValue, 
	[OutAttribute] CompletedStatus^% status
)

Parameters

inValue
Type: T
The value to be sent.
dest
Type: System..::.Int32
The rank of the process the data will be sent to.
sendTag
Type: System..::.Int32
A message "tag" that identifies the particular kind of message being sent.
source
Type: System..::.Int32
The rank of the process the data will received from.
recvTag
Type: System..::.Int32
A message "tag" that identifies the particular kind of message being received.
outValue
Type: T %
The value to be received.
status
Type: MPI..::.CompletedStatus %
Receives information about the completed receive operation.

Type Parameters

T
Any serializable type.

See Also