Function qhipster::mpi::PoolPrint¶
Defined in File mpi_env.hpp
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 ifall
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 printedall
: a flag to specify if all processes should print or just the master process