mpi::communicator::size

#include <mpi/communicator.hpp>

Synopsis

int size () const

Returns

The result of MPI_Comm_size if mpi::has_env is true, otherwise 1.