44#ifndef BELOS_STATUS_TEST_HPP
45#define BELOS_STATUS_TEST_HPP
55#include "Teuchos_Describable.hpp"
78template <
class ScalarType,
class MV,
class OP>
124 virtual void print(std::ostream& os,
int indent = 0)
const = 0;
128 os << std::left << std::setw(13) << std::setfill(
'.');
141 os << std::left << std::setfill(
' ');
Belos header file which uses auto-configuration information to include necessary C++ headers.
Pure virtual base class which describes the basic interface to the linear solver iteration.
Collection of types and exceptions used within the Belos solvers.
Parent class to all Belos exceptions.
BelosError(const std::string &what_arg)
Exception thrown to signal error in a status test during Belos::StatusTest::checkStatus().
StatusTestError(const std::string &what_arg)
A pure virtual class for defining the status tests for the Belos iterative solvers.
virtual StatusType getStatus() const =0
Return the result of the most recent CheckStatus call.
virtual ~StatusTest()
Destructor.
virtual void print(std::ostream &os, int indent=0) const =0
Output formatted description of stopping test to output stream.
virtual StatusType checkStatus(Iteration< ScalarType, MV, OP > *iSolver)=0
Check convergence status: Unconverged, Converged, Failed.
virtual void reset()=0
Informs the convergence test that it should reset its internal configuration to the initialized state...
virtual void printStatus(std::ostream &os, StatusType type) const
Output the result of the most recent CheckStatus call.
StatusType
Whether the StatusTest wants iteration to stop.