Function qhipster::mpi::PoolPrint

Function Documentation

void qhipster::mpi::PoolPrint(std::string s, bool all = false)

Print from all MPI processes.

It prints a string from all processes if all is true or just from the master process with rank 0 if all is false. If MPI is not present it prints the string.

If all is set, the string is prefixed by the number of the MPI process.

Parameters
  • s: the string to be printed

  • all: a flag to specify if all processes should print or just the master process