LAM/MPI logo

MPI binding for MPI_CART_SUB

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just the tutorials

Neutral Binding

MPI_CART_SUB(comm, remain_dims, newcomm)
[ IN comm] communicator with cartesian structure (handle)
[ IN remain_dims] the ith entry of remain_dims specifies whether the
ith dimension is kept in the subgrid ( true) or is dropped ( false) (logical vector)
[ OUT newcomm] communicator containing the subgrid that includes the calling process (handle)


C Binding

int MPI_Cart_sub(MPI_Comm comm, int *remain_dims, MPI_Comm *newcomm)

FORTRAN Binding

MPI_CART_SUB(COMM, REMAIN_DIMS, NEWCOMM, IERROR)
INTEGER COMM, NEWCOMM, IERROR
LOGICAL REMAIN_DIMS(*)

C++ Binding
(in the MPI:: namespace)

Cartcomm Cartcomm::Sub(const bool remain_dims[]) const