17 #include <Teuchos_VerboseObject.hpp>
40 MPI_Initialized(&mpiStarted);
42 MPI_Comm_rank(MPI_COMM_WORLD, &
procRank_);
43 MPI_Comm_size(MPI_COMM_WORLD, &
numProcs_);
73 if (!
IsPrint(type, thisProcRankOnly))
78 os <<
"\n******* WARNING *******" << std::endl;
89 "MueLu::VerboseObject::GetVerbLevel(): global verbose level cannot be 'NotSpecified'.");
106 MPI_Initialized(&mpiStarted);
109 MPI_Comm_rank(MPI_COMM_WORLD, &procRank);
110 fn = filename +
"." + std::to_string(procRank);
static VerbLevel GetDefaultVerbLevel()
Get the default (global) verbosity level.
Teuchos::FancyOStream & GetOStream(MsgType type, int thisProcRankOnly=0) const
Get an output stream for outputting the input message type.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Teuchos::FancyOStream & GetBlackHole() const
static Teuchos::RCP< Teuchos::FancyOStream > mueluOutputStream_
static Teuchos::RCP< Teuchos::FancyOStream > GetMueLuOStream()
static void SetMueLuOFileStream(const std::string &filename)
static VerbLevel globalVerbLevel_
Global verbose level. This verbose level is used when the verbose level of the object is not specifie...
static void SetDefaultVerbLevel(const VerbLevel defaultVerbLevel)
Set the default (global) verbosity level.
static Teuchos::RCP< Teuchos::FancyOStream > blackHole_
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
int GetProcRankVerbose() const
Get proc rank used for printing. Do not use this information for any other purpose.
bool IsPrint(MsgType type, int thisProcRankOnly=-1) const
Find out whether we need to print out information for a specific message type.
VerbLevel GetVerbLevel() const
Get the verbosity level.
basic_FancyOStream & setOutputToRootOnly(const int rootRank)
virtual ~VerboseObject()
Destructor.
VerbLevel verbLevel_
Verbose level specific to 'this'.
int SetProcRankVerbose(int procRank) const
Set proc rank used for printing.
void SetVerbLevel(const VerbLevel verbLevel)
Set the verbosity level of this object.
Exception throws to report errors in the internal logical of the program.
Print all warning messages.
static void SetMueLuOStream(const Teuchos::RCP< Teuchos::FancyOStream > &mueluOStream)