53#include <Teuchos_VerboseObject.hpp>
75 int mpiStarted = 0; MPI_Initialized(&mpiStarted);
77 MPI_Comm_rank(MPI_COMM_WORLD, &
procRank_);
78 MPI_Comm_size(MPI_COMM_WORLD, &
numProcs_);
108 if (!
IsPrint(type, thisProcRankOnly))
113 os <<
"\n******* WARNING *******" << std::endl;
124 "MueLu::VerboseObject::GetVerbLevel(): global verbose level cannot be 'NotSpecified'.");
133 mueluOStream->setOutputToRootOnly(-1);
140 int mpiStarted = 0; MPI_Initialized(&mpiStarted);
143 MPI_Comm_rank(MPI_COMM_WORLD, &procRank);
144 fn = filename +
"." + std::to_string(procRank);
148 RCP<std::ofstream> outFile(
new std::ofstream(fn));
149 Teuchos::RCP<Teuchos::FancyOStream> fancyOutFile = Teuchos::fancyOStream(Teuchos::rcp_implicit_cast<std::ostream>(outFile));
Exception throws to report errors in the internal logical of the program.
Teuchos::FancyOStream & GetOStream(MsgType type, int thisProcRankOnly=0) const
Get an output stream for outputting the input message type.
VerbLevel GetVerbLevel() const
Get the verbosity level.
int SetProcRankVerbose(int procRank) const
Set proc rank used for printing.
VerbLevel verbLevel_
Verbose level specific to 'this'.
static Teuchos::RCP< Teuchos::FancyOStream > blackHole_
static VerbLevel GetDefaultVerbLevel()
Get the default (global) verbosity level.
static Teuchos::RCP< Teuchos::FancyOStream > GetMueLuOStream()
void SetVerbLevel(const VerbLevel verbLevel)
Set the verbosity level of this object.
bool IsPrint(MsgType type, int thisProcRankOnly=-1) const
Find out whether we need to print out information for a specific message type.
static Teuchos::RCP< Teuchos::FancyOStream > mueluOutputStream_
static void SetMueLuOStream(const Teuchos::RCP< Teuchos::FancyOStream > &mueluOStream)
static VerbLevel globalVerbLevel_
Global verbose level. This verbose level is used when the verbose level of the object is not specifie...
Teuchos::FancyOStream & GetBlackHole() const
static void SetDefaultVerbLevel(const VerbLevel defaultVerbLevel)
Set the default (global) verbosity level.
virtual ~VerboseObject()
Destructor.
static void SetMueLuOFileStream(const std::string &filename)
int GetProcRankVerbose() const
Get proc rank used for printing. Do not use this information for any other purpose.
Namespace for MueLu classes and methods.
@ Warnings
Print all warning messages.