[This is preliminary documentation and is subject to change.]
Calculates the necessary source and destination ranks for shifting data over the
Cartesian communicator.
Namespace:
MPIAssembly: MPI (in MPI.dll)
Version: 0.8.0.0 (0.8.0.0)
Syntax
| C# |
|---|
public static int MPI_Cart_shift( int comm, int direction, int disp, int* rank_source, int* rank_dest ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function MPI_Cart_shift ( _ comm As Integer, _ direction As Integer, _ disp As Integer, _ rank_source As Integer*, _ rank_dest As Integer* _ ) As Integer |
| Visual C++ |
|---|
public: static int MPI_Cart_shift( int comm, int direction, int disp, int* rank_source, int* rank_dest ) |
Parameters
- comm
- Type: System..::.Int32
The communicator.
- direction
- Type: System..::.Int32
An integer specifying which of the dimensions along which to shift.
- disp
- Type: System..::.Int32
How far to shift (negative values means "downward," positive values "upward").
- rank_source
- Type:
System..::.Int32
*
Output parameter for rank to receive from.
- rank_dest
- Type:
System..::.Int32
*
Output parameter for rank to send to.