Go to the documentation of this file.
52 #include <Teuchos_VerboseObject.hpp>
74 int mpiStarted = 0; MPI_Initialized(&mpiStarted);
76 MPI_Comm_rank(MPI_COMM_WORLD, &
procRank_);
77 MPI_Comm_size(MPI_COMM_WORLD, &
numProcs_);
107 if (!
IsPrint(type, thisProcRankOnly))
112 os <<
"\n******* WARNING *******" << std::endl;
123 "MueLu::VerboseObject::GetVerbLevel(): global verbose level cannot be 'NotSpecified'.");
132 mueluOStream->setOutputToRootOnly(-1);
137 static Teuchos::RCP<Teuchos::FancyOStream> mueluOutputStream;
138 if (mueluOutputStream.get()==NULL) {
139 mueluOutputStream = fancyOStream(rcpFromRef(std::cout));
140 mueluOutputStream->setOutputToRootOnly(-1);
142 return mueluOutputStream;
virtual ~VerboseObject()
Destructor.
int GetProcRankVerbose() const
Get proc rank used for printing. Do not use this information for any other purpose.
VerbLevel verbLevel_
Verbose level specific to 'this'.
static void SetMueLuOStream(const Teuchos::RCP< Teuchos::FancyOStream > &mueluOStream)
Namespace for MueLu classes and methods.
VerbLevel GetVerbLevel() const
Get the verbosity level.
static VerbLevel globalVerbLevel_
Global verbose level. This verbose level is used when the verbose level of the object is not specifie...
static Teuchos::RCP< Teuchos::FancyOStream > blackHole_
Teuchos::FancyOStream & GetOStream(MsgType type, int thisProcRankOnly=0) const
Get an output stream for outputting the input message type.
Exception throws to report errors in the internal logical of the program.
void SetVerbLevel(const VerbLevel verbLevel)
Set the verbosity level of this object.
static Teuchos::RCP< Teuchos::FancyOStream > GetMueLuOStream()
static VerbLevel GetDefaultVerbLevel()
Get the default (global) verbosity level.
@ Warnings
Print all warning messages.
bool IsPrint(MsgType type, int thisProcRankOnly=-1) const
Find out whether we need to print out information for a specific message type.
static void SetDefaultVerbLevel(const VerbLevel defaultVerbLevel)
Set the default (global) verbosity level.
int SetProcRankVerbose(int procRank) const
Set proc rank used for printing.
Teuchos::FancyOStream & GetBlackHole() const