MueLu Version of the Day
|
Verbose class for MueLu classes. More...
#include <MueLu_VerboseObject.hpp>
Public static member functions | |
VerbLevel | verbLevel_ |
Verbose level specific to 'this'. | |
int | procRank_ |
int | numProcs_ |
static Teuchos::RCP< Teuchos::FancyOStream > | mueluOutputStream_ = Teuchos::null |
static Teuchos::RCP< Teuchos::FancyOStream > | blackHole_ = Teuchos::getFancyOStream(rcp(new Teuchos::oblackholestream())) |
static VerbLevel | globalVerbLevel_ = High |
Global verbose level. This verbose level is used when the verbose level of the object is not specified (verbLevel_ == NotSpecified) | |
static void | SetDefaultVerbLevel (const VerbLevel defaultVerbLevel) |
Set the default (global) verbosity level. | |
static VerbLevel | GetDefaultVerbLevel () |
Get the default (global) verbosity level. | |
Constructors/Destructors. | |
VerboseObject () | |
virtual | ~VerboseObject () |
Destructor. | |
VerbLevel | GetVerbLevel () const |
Get the verbosity level. | |
void | SetVerbLevel (const VerbLevel verbLevel) |
Set the verbosity level of this object. | |
int | GetProcRankVerbose () const |
Get proc rank used for printing. Do not use this information for any other purpose. | |
int | SetProcRankVerbose (int procRank) const |
Set proc rank used for printing. | |
bool | IsPrint (MsgType type, int thisProcRankOnly=-1) const |
Find out whether we need to print out information for a specific message type. | |
Teuchos::FancyOStream & | GetOStream (MsgType type, int thisProcRankOnly=0) const |
Get an output stream for outputting the input message type. | |
Teuchos::FancyOStream & | GetBlackHole () const |
static void | SetMueLuOStream (const Teuchos::RCP< Teuchos::FancyOStream > &mueluOStream) |
static void | SetMueLuOFileStream (const std::string &filename) |
static Teuchos::RCP< Teuchos::FancyOStream > | GetMueLuOStream () |
Verbose class for MueLu classes.
This class is inspired by BelosOutputManager but:
Definition at line 79 of file MueLu_VerboseObject.hpp.
MueLu::VerboseObject::VerboseObject | ( | ) |
Definition at line 61 of file MueLu_VerboseObject.cpp.
|
virtual |
Destructor.
Definition at line 83 of file MueLu_VerboseObject.cpp.
VerbLevel MueLu::VerboseObject::GetVerbLevel | ( | ) | const |
Get the verbosity level.
If a verbosity level has not been specified for this object (using SetVerbLevel), this method returns the default/global verbose level.
Definition at line 85 of file MueLu_VerboseObject.cpp.
void MueLu::VerboseObject::SetVerbLevel | ( | const VerbLevel | verbLevel | ) |
Set the verbosity level of this object.
Definition at line 89 of file MueLu_VerboseObject.cpp.
int MueLu::VerboseObject::GetProcRankVerbose | ( | ) | const |
Get proc rank used for printing. Do not use this information for any other purpose.
Definition at line 93 of file MueLu_VerboseObject.cpp.
int MueLu::VerboseObject::SetProcRankVerbose | ( | int | procRank | ) | const |
Set proc rank used for printing.
Definition at line 97 of file MueLu_VerboseObject.cpp.
bool MueLu::VerboseObject::IsPrint | ( | MsgType | type, |
int | thisProcRankOnly = -1 ) const |
Find out whether we need to print out information for a specific message type.
This method is used to determine whether computations are necessary for this message type.
Definition at line 103 of file MueLu_VerboseObject.cpp.
Teuchos::FancyOStream & MueLu::VerboseObject::GetOStream | ( | MsgType | type, |
int | thisProcRankOnly = 0 ) const |
Get an output stream for outputting the input message type.
Definition at line 107 of file MueLu_VerboseObject.cpp.
Teuchos::FancyOStream & MueLu::VerboseObject::GetBlackHole | ( | ) | const |
Definition at line 118 of file MueLu_VerboseObject.cpp.
|
static |
Definition at line 132 of file MueLu_VerboseObject.cpp.
|
static |
Definition at line 137 of file MueLu_VerboseObject.cpp.
|
static |
Definition at line 153 of file MueLu_VerboseObject.cpp.
|
static |
Set the default (global) verbosity level.
Definition at line 122 of file MueLu_VerboseObject.cpp.
|
static |
Get the default (global) verbosity level.
Definition at line 128 of file MueLu_VerboseObject.cpp.
|
private |
Verbose level specific to 'this'.
Definition at line 135 of file MueLu_VerboseObject.hpp.
|
mutableprivate |
Definition at line 137 of file MueLu_VerboseObject.hpp.
|
private |
Definition at line 138 of file MueLu_VerboseObject.hpp.
|
staticprivate |
Definition at line 140 of file MueLu_VerboseObject.hpp.
|
staticprivate |
Definition at line 141 of file MueLu_VerboseObject.hpp.
Global verbose level. This verbose level is used when the verbose level of the object is not specified (verbLevel_ == NotSpecified)
Definition at line 144 of file MueLu_VerboseObject.hpp.