29 #ifndef ANASAZI_BASIC_OUTPUT_MANAGER_HPP 30 #define ANASAZI_BASIC_OUTPUT_MANAGER_HPP 38 #include "Teuchos_oblackholestream.hpp" 56 template <
class ScalarType>
66 Teuchos::RCP<ostream> os = Teuchos::rcpFromRef(std::cout),
67 int printingRank = 0);
114 Teuchos::RCP<ostream> myOS_;
115 Teuchos::oblackholestream myBHS_;
119 template<
class ScalarType>
127 MPI_Initialized(&mpiStarted);
128 if (mpiStarted) MPI_Comm_rank(MPI_COMM_WORLD, &MyPID);
133 iPrint_ = (MyPID == printingRank);
136 template<
class ScalarType>
141 template<
class ScalarType>
146 template<
class ScalarType>
148 if ( (type & this->vb_) == type ) {
154 template<
class ScalarType>
156 if ( (type & this->vb_) == type && iPrint_ ) {
161 template<
class ScalarType>
163 if ( (type & this->vb_) == type && iPrint_ ) {
void print(MsgType type, const std::string output)
Send some output to this output stream.
ostream & stream(MsgType type)
Return a stream for outputting to.
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package...
Abstract class definition for Anasazi Output Managers.
virtual ~BasicOutputManager()
Destructor.
Anasazi's basic output manager for sending information of select verbosity levels to the appropriate ...
Output managers remove the need for the eigensolver to know any information about the required output...
bool isVerbosity(MsgType type) const
Find out whether we need to print out information for this message type.
Anasazi header file which uses auto-configuration information to include necessary C++ headers...
Teuchos::RCP< ostream > getOStream()
Get the output stream for this manager.
BasicOutputManager(int vb=Anasazi::Errors, Teuchos::RCP< ostream > os=Teuchos::rcpFromRef(std::cout), int printingRank=0)
Default constructor.
MsgType
Enumerated list of available message types recognized by the eigensolvers.
void setOStream(Teuchos::RCP< ostream > os)
Set the output stream for this manager.