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_);
84 if (defaultOStream.
get() == NULL) {
85 defaultOStream = Teuchos::fancyOStream(rcpFromRef(std::cout));
119 if (!
IsPrint(type, thisProcRankOnly))
124 os <<
"\n******* WARNING *******" << std::endl;
135 "MueLu::VerboseObject::GetVerbLevel(): global verbose level cannot be 'NotSpecified'.");
static void SetDefaultOStream(const Teuchos::RCP< Teuchos::FancyOStream > &defaultOStream)
virtual ~VerboseObject()
Destructor.
Print skeleton for the run, i.e. factory calls and used parameters.
static RCP< FancyOStream > getDefaultOStream()
static void SetDefaultVerbLevel(const VerbLevel defaultVerbLevel)
Set the default (global) verbosity level.
static Teuchos::RCP< Teuchos::FancyOStream > blackHole_
bool IsPrint(MsgType type, int thisProcRankOnly=-1) const
Find out whether we need to print out information for a specific message type.
VerbLevel verbLevel_
Verbose level specific to 'this'.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
static Teuchos::RCP< Teuchos::FancyOStream > GetDefaultOStream()
Namespace for MueLu classes and methods.
int GetProcRankVerbose() const
Get proc rank used for printing. Do not use this information for any other purpose.
basic_FancyOStream & setOutputToRootOnly(const int rootRank)
void SetVerbLevel(const VerbLevel verbLevel)
Set the verbosity level of this object.
int SetProcRankVerbose(int procRank) const
Set proc rank used for printing.
static VerbLevel GetDefaultVerbLevel()
Get the default (global) verbosity level.
Exception throws to report errors in the internal logical of the program.
VerbLevel GetVerbLevel() const
Get the verbosity level.
Print all warning messages.
Teuchos::FancyOStream & GetBlackHole() const
Teuchos::FancyOStream & GetOStream(MsgType type, int thisProcRankOnly=0) const
Get an output stream for outputting the input message type.
static void setDefaultOStream(const RCP< FancyOStream > &defaultOStream)
virtual RCP< FancyOStream > getOStream() const
static VerbLevel globalVerbLevel_
Global verbose level. This verbose level is used when the verbose level of the object is not specifie...
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)