12 #ifndef MFEM_GLOBALS_HPP
13 #define MFEM_GLOBALS_HPP
15 #include "../config/config.hpp"
57 bool IsEnabled()
const {
return (rdbuf() != NULL); }
83 const std::string suffix =
"",
const int width = 6);
std::string MakeParFilename(const std::string &prefix, const int myid, const std::string suffix, const int width)
Construct a string of the form "<prefix><myid><suffix>" where the integer myid is padded with leading...
Simple extension of std::ostream.
void SetStream(std::ostream &out)
Replace the rdbuf() and tie() of the OutStream with that of out, enabling output. ...
bool IsEnabled() const
Check if output is enabled.
OutStream err(std::cerr)
Global stream used by the library for standard error output. Initially it uses the same std::streambu...
void Disable()
Disable output.
void Enable()
Enable output.
OutStream out(std::cout)
Global stream used by the library for standard output. Initially it uses the same std::streambuf as s...
void SetGlobalMPI_Comm(MPI_Comm comm)
Set MFEM's "global" MPI communicator.
OutStream(std::ostream &out)
Construct an OutStream from the given stream out, by using its rdbuf().
MPI_Comm GetGlobalMPI_Comm()
Get MFEM's "global" MPI communicator.