triqs::stat::histogram::mpi_reduce

#include <triqs/stat.hpp>

Synopsis

histogram mpi_reduce (histogram const & h,
communicator c = {},
int root = 0,
bool all = false,
MPI_Op op = MPI_SUM)

MPI-reduce histogram. The only supported reduction operation is MPI_SUM, which is equivalent to operator+().

Parameters

  • h Histogram subject to reduction

  • c MPI communicator object

  • root MPI root rank for MPI reduction

  • all Send reduction result to all ranks in c?

  • op Reduction operation, must be MPI_SUM

Returns

Reduction result; valid only on MPI rank 0 if all = false