.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _mpi__communicator__split: mpi::communicator::split ======================== *#include * **Synopsis** .. rst-class:: cppsynopsis | :ref:`communicator ` :red:`split` (int :param:`color`, int :param:`key` = 0) const Returns ^^^^^^^ If mpi::has_env is true, return the split `MPI_Comm` object wrapped in a new mpi::communicator, otherwise return a default constructed mpi::communicator.