MPI_Cart_sub

--- Partitions a communicator into subgroups which form lower-dimensional cartesian subgrids

Input Parameters

comm
communicator with cartesian structure (handle)
remain_dims
the i th entry of remain_dims specifies whether the i th dimension is kept in the subgrid ( true ) or is dropped ( false ) (logical vector)

Output Parameter

newcomm
communicator containing the subgrid that includes the calling process (handle)

Synopsis


#include "mpi.h"
int MPI_Cart_sub ( comm, remain_dims, comm_new )
MPI_Comm  comm;
int      *remain_dims;
MPI_Comm *comm_new;

Location: cart_sub.c