SIRIUS 7.5.0
Electronic structure library and applications
Public Member Functions | Private Attributes | List of all members
sirius::mpi::pstdout Class Reference

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_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ pstdout()

sirius::mpi::pstdout::pstdout ( Communicator const &  comm__)
inline

Definition at line 47 of file pstdout.hpp.

Member Function Documentation

◆ flush()

std::string sirius::mpi::pstdout::flush ( int  root__)
inline

Definition at line 52 of file pstdout.hpp.

Member Data Documentation

◆ comm_

Communicator const& sirius::mpi::pstdout::comm_
private

Definition at line 44 of file pstdout.hpp.


The documentation for this class was generated from the following file: