42 #ifndef ANASAZI_BASIC_OUTPUT_MANAGER_HPP 43 #define ANASAZI_BASIC_OUTPUT_MANAGER_HPP 51 #include "Teuchos_oblackholestream.hpp" 69 template <
class ScalarType>
79 Teuchos::RCP<ostream> os = Teuchos::rcpFromRef(std::cout),
80 int printingRank = 0);
127 Teuchos::RCP<ostream> myOS_;
128 Teuchos::oblackholestream myBHS_;
132 template<
class ScalarType>
140 MPI_Initialized(&mpiStarted);
141 if (mpiStarted) MPI_Comm_rank(MPI_COMM_WORLD, &MyPID);
146 iPrint_ = (MyPID == printingRank);
149 template<
class ScalarType>
154 template<
class ScalarType>
159 template<
class ScalarType>
161 if ( (type & this->vb_) == type ) {
167 template<
class ScalarType>
169 if ( (type & this->vb_) == type && iPrint_ ) {
174 template<
class ScalarType>
176 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.