Go to the documentation of this file.
42 #ifndef BELOS_OUTPUT_MANAGER_HPP
43 #define BELOS_OUTPUT_MANAGER_HPP
51 #include "Teuchos_oblackholestream.hpp"
52 #include "Teuchos_RCP.hpp"
72 template <
class ScalarType>
91 void setOStream(
const Teuchos::RCP<std::ostream> &os ) { myOS_ = os; };
104 if ( (type & vb_) && iPrint_ ) {
148 Teuchos::RCP<std::ostream> myOS_;
149 Teuchos::oblackholestream myBHS_;
153 template<
class ScalarType>
162 MPI_Initialized(&mpiStarted);
163 if (mpiStarted) MPI_Comm_rank(MPI_COMM_WORLD, &MyPID);
168 iPrint_ = (MyPID == 0);
171 template<
class ScalarType>
173 if ( (type & vb_) && iPrint_ ) {
Belos header file which uses auto-configuration information to include necessary C++ headers.
OutputManager(int vb=Belos::Errors, const Teuchos::RCP< std::ostream > &os=Teuchos::rcp(&std::cout, false))
Basic constructor.
Belos's basic output manager for sending information of select verbosity levels to the appropriate ou...
bool isVerbosity(MsgType type) const
Find out whether we need to print out information for this message type.
void setOStream(const Teuchos::RCP< std::ostream > &os)
Set the output stream for this manager.
virtual ~OutputManager()
Destructor.
void print(MsgType type, const std::string output)
@ name Print methods
std::ostream & stream(MsgType type)
Get an output stream for outputting the input message type.
MsgType
Available message types recognized by the linear solvers.
Teuchos::RCP< std::ostream > getOStream()
Get the output stream for this manager.
Collection of types and exceptions used within the Belos solvers.
void setVerbosity(int vb)
Set the verbosity level for this manager.
Generated on Sat May 30 2020 11:07:32 for Belos by
1.8.17