PSCF v1.1
|
Allows information from every processor in a communicator, to be output in rank sequence. More...
#include <MpiLogger.h>
Public Member Functions | |
MpiLogger (MPI::Intracomm &comm=MPI::COMM_WORLD) | |
Constructor. More... | |
void | begin () |
Begin logging block. More... | |
void | end () |
End logging block. More... | |
Allows information from every processor in a communicator, to be output in rank sequence.
The begin() method for processor of rank > 0 waits for receipt of a message from processor rank - 1. The end() method sends a message to processor rank + 1.
Usage:
Definition at line 37 of file MpiLogger.h.
Util::MpiLogger::MpiLogger | ( | MPI::Intracomm & | comm = MPI::COMM_WORLD | ) |
Constructor.
Definition at line 18 of file MpiLogger.cpp.
void Util::MpiLogger::begin | ( | ) |
Begin logging block.
Definition at line 26 of file MpiLogger.cpp.
void Util::MpiLogger::end | ( | ) |
End logging block.
Definition at line 42 of file MpiLogger.cpp.