SIRIUS 7.5.0
Electronic structure library and applications
|
Parallel standard output. More...
#include <pstdout.hpp>
Inherits std::stringstream.
Public Member Functions | |
pstdout (Communicator const &comm__) | |
std::string | flush (int root__) |
Private Attributes | |
Communicator const & | comm_ |
Parallel standard output.
Proveides an ordered standard output from multiple MPI ranks. pstdout pout(comm); pout << "Hello from rank " << comm.rank() << std::end; // print from root rank (id=0) and flush the internal buffer std::cout << pout.flush(0);
Definition at line 41 of file pstdout.hpp.
|
inline |
Definition at line 47 of file pstdout.hpp.
|
inline |
Definition at line 52 of file pstdout.hpp.
|
private |
Definition at line 44 of file pstdout.hpp.