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 tag,
	ref T[] outValues
)
Visual Basic (Declaration)
Public Sub SendReceive(Of T) ( _
	inValues As T(), _
	dest As Integer, _
	tag As Integer, _
	ByRef outValues As T() _
)
Visual C++
public:
generic<typename T>
void SendReceive(
	array<T>^ inValues, 
	int dest, 
	int tag, 
	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 and received from.
tag
Type: System..::.Int32
A message "tag" that identifies the particular kind of message being sent and 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