Purpose
Creates a new communicator that is a duplicate of an existing communicator.
C++ synopsis
#include mpi.h MPI::Cartcomm& MPI::Cartcomm::Clone() const;
#include mpi.h MPI::Graphcomm& MPI::Graphcomm::Clone() const;
#include mpi.h MPI::Intercomm& MPI::Intercomm::Clone() const;
#include mpi.h MPI::Intracomm& MPI::Intracomm::Clone() const;
Parameters
Description
This subroutine is a pure virtual function. For the derived communicator classes, MPI::Comm::Clone() behaves like Dup(), except that it returns a new object by reference.
Errors
Related information