mpi::communicator::rank

#include <mpi/communicator.hpp>

Synopsis

int rank () const

Returns

The result of MPI_Comm_rank if mpi::has_env is true, otherwise 0.