MPI_Comm_dup

int MPI_Comm_dup(MPI_Comm, MPI_Comm *);
Creates a new communicator that is a duplicate of an existing communicator.