Belos::StatusTest< ScalarType, MV, OP > Class Template Reference

A pure virtual class for defining the status tests for the Belos iterative solvers. More...

#include <BelosStatusTest.hpp>

Inheritance diagram for Belos::StatusTest< ScalarType, MV, OP >:
Inheritance graph
[legend]

List of all members.

Constructors/destructors



 StatusTest ()
 Constructor.
virtual ~StatusTest ()
 Destructor.

Status methods



virtual StatusType checkStatus (Iteration< ScalarType, MV, OP > *iSolver)=0
 Check convergence status: Unconverged, Converged, Failed.
virtual StatusType getStatus () const =0
 Return the result of the most recent CheckStatus call.

Reset methods



virtual void reset ()=0
 Informs the convergence test that it should reset its internal configuration to the initialized state.

Print methods



virtual void print (std::ostream &os, int indent=0) const =0
 Output formatted description of stopping test to output stream.
virtual void printStatus (std::ostream &os, StatusType type) const
 Output the result of the most recent CheckStatus call.

Detailed Description

template<class ScalarType, class MV, class OP>
class Belos::StatusTest< ScalarType, MV, OP >

A pure virtual class for defining the status tests for the Belos iterative solvers.

Belos::StatusTest is an interface that can be implemented to create convergence tests for all Belos solvers. Almost any kind of test can be expressed using this mechanism, including composite tests (see Belos::StatusTestCombo).

Definition at line 66 of file BelosStatusTest.hpp.


Constructor & Destructor Documentation

template<class ScalarType , class MV , class OP >
Belos::StatusTest< ScalarType, MV, OP >::StatusTest (  )  [inline]

Constructor.

Definition at line 73 of file BelosStatusTest.hpp.

template<class ScalarType , class MV , class OP >
virtual Belos::StatusTest< ScalarType, MV, OP >::~StatusTest (  )  [inline, virtual]

Destructor.

Definition at line 76 of file BelosStatusTest.hpp.


Member Function Documentation

template<class ScalarType , class MV , class OP >
virtual StatusType Belos::StatusTest< ScalarType, MV, OP >::checkStatus ( Iteration< ScalarType, MV, OP > *  iSolver  )  [pure virtual]

Check convergence status: Unconverged, Converged, Failed.

This method checks to see if the convergence criteria are met. The calling routine may pass in the current native residual std::vector (the one naturally produced as part of the iterative method) or a pre-computed estimate of the two-norm of the current residual, or both or neither. The calling routine should also indicate if the solution of the linear problem has been updated to be compatible with the residual. Some methods, such as GMRES do not update the solution at each iteration.

Returns:
Belos::StatusType: Unconverged, Converged or Failed.

Implemented in Belos::StatusTestCombo< ScalarType, MV, OP >, Belos::StatusTestGeneralOutput< ScalarType, MV, OP >, Belos::StatusTestGenResNorm< ScalarType, MV, OP >, Belos::StatusTestImpResNorm< ScalarType, MV, OP >, Belos::StatusTestMaxIters< ScalarType, MV, OP >, and Belos::StatusTestResNormOutput< ScalarType, MV, OP >.

template<class ScalarType , class MV , class OP >
virtual StatusType Belos::StatusTest< ScalarType, MV, OP >::getStatus (  )  const [pure virtual]
template<class ScalarType , class MV , class OP >
virtual void Belos::StatusTest< ScalarType, MV, OP >::reset (  )  [pure virtual]

Informs the convergence test that it should reset its internal configuration to the initialized state.

This is necessary for the case when the status test is being reused by another solver or for another linear problem. The status test may have information that pertains to a particular linear system. The internal information will be reset back to the initialized state. The user specified information that the convergence test uses will remain.

Implemented in Belos::StatusTestCombo< ScalarType, MV, OP >, Belos::StatusTestGeneralOutput< ScalarType, MV, OP >, Belos::StatusTestGenResNorm< ScalarType, MV, OP >, Belos::StatusTestImpResNorm< ScalarType, MV, OP >, Belos::StatusTestMaxIters< ScalarType, MV, OP >, and Belos::StatusTestResNormOutput< ScalarType, MV, OP >.

template<class ScalarType , class MV , class OP >
virtual void Belos::StatusTest< ScalarType, MV, OP >::print ( std::ostream &  os,
int  indent = 0 
) const [pure virtual]
template<class ScalarType , class MV , class OP >
virtual void Belos::StatusTest< ScalarType, MV, OP >::printStatus ( std::ostream &  os,
StatusType  type 
) const [inline, virtual]

Output the result of the most recent CheckStatus call.

Reimplemented in Belos::StatusTestGenResNorm< ScalarType, MV, OP >, Belos::StatusTestImpResNorm< ScalarType, MV, OP >, and Belos::StatusTestMaxIters< ScalarType, MV, OP >.

Definition at line 114 of file BelosStatusTest.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:05:19 2011 for Belos Package Browser (Single Doxygen Collection) by  doxygen 1.6.3