Finds the source and destination ranks necessary to shift data along the grid.
Namespace:
MPIAssembly: MPI (in MPI.dll)
Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public void Shift( int direction, int disp, out int rank_source, out int rank_dest ) |
| Visual Basic (Declaration) |
|---|
Public Sub Shift ( _ direction As Integer, _ disp As Integer, _ <OutAttribute> ByRef rank_source As Integer, _ <OutAttribute> ByRef rank_dest As Integer _ ) |
| Visual C++ |
|---|
public: void Shift( int direction, int disp, [OutAttribute] int% rank_source, [OutAttribute] int% rank_dest ) |
Parameters
- direction
- Type: System..::.Int32
The dimension in which to shift.
- disp
- Type: System..::.Int32
The distance along the grid to shift. Positive values indicate upward shifts, negative values downward shifts.
- rank_source
- Type:
System..::.Int32
%
Will contain the rank of the source process.
- rank_dest
- Type:
System..::.Int32
%
Will contain the rank of the destination process.