Simultaneously send and receive an array of values from another process.

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

Syntax

C#
public void SendReceive<T>(
	T[] inValues,
	int dest,
	int sendTag,
	int source,
	int recvTag,
	ref T[] outValues
)
Visual Basic (Declaration)
Public Sub SendReceive(Of T) ( _
	inValues As T(), _
	dest As Integer, _
	sendTag As Integer, _
	source As Integer, _
	recvTag As Integer, _
	ByRef outValues As T() _
)
Visual C++
public:
generic<typename T>
void SendReceive(
	array<T>^ inValues, 
	int dest, 
	int sendTag, 
	int source, 
	int recvTag, 
	array<T>^% outValues
)

Parameters

inValues
Type: array< T >[]()[]
The values 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.
outValues
Type: array< T >[]()[] %
An array in which to store the values to be received. The array must be large enough to contain the received data.

Type Parameters

T
Any serializable type.

See Also