10#ifndef BELOS_OUTPUT_MANAGER_HPP
11#define BELOS_OUTPUT_MANAGER_HPP
19#include "Teuchos_oblackholestream.hpp"
20#include "Teuchos_RCP.hpp"
41 template <
class ScalarType>
73 if ( (type & vb_) && iPrint_ ) {
80 Teuchos::RCP<std::ostream>
getOStream() {
return myOS_; };
117 Teuchos::RCP<std::ostream> myOS_;
118 Teuchos::oblackholestream myBHS_;
122 template<
class ScalarType>
137 iPrint_ = (
MyPID == 0);
140 template<
class ScalarType>
142 if ( (type & vb_) && iPrint_ ) {
Belos header file which uses auto-configuration information to include necessary C++ headers.
Collection of types and exceptions used within the Belos solvers.
Alternative run-time polymorphic interface for operators.
Operator()
Default constructor (does nothing).
Belos's basic output manager for sending information of select verbosity levels to the appropriate ou...
void print(MsgType type, const std::string output)
@ name Print methods
void setVerbosity(int vb)
Set the verbosity level for this manager.
void setOStream(const Teuchos::RCP< std::ostream > &os)
Set the output stream for this manager.
Teuchos::RCP< std::ostream > getOStream()
Get the output stream for this manager.
virtual ~OutputManager()
Destructor.
std::ostream & stream(MsgType type)
Get an output stream for outputting the input message type.
OutputManager(int vb=Belos::Errors, const Teuchos::RCP< std::ostream > &os=Teuchos::rcp(&std::cout, false))
Basic constructor.
bool isVerbosity(MsgType type) const
Find out whether we need to print out information for this message type.
MsgType
Available message types recognized by the linear solvers.