45 #ifndef THYRA_GENERAL_SOLVE_CRITERIA_BELOS_STATUS_TEST_DECL_HPP
46 #define THYRA_GENERAL_SOLVE_CRITERIA_BELOS_STATUS_TEST_DECL_HPP
48 #include "Thyra_SolveSupportTypes.hpp"
49 #include "BelosStatusTest.hpp"
50 #include "BelosLinearProblem.hpp"
51 #include "BelosMultiVecTraits.hpp"
62 template<
class Scalar>
64 :
public Belos::StatusTest<Scalar, MultiVectorBase<Scalar>, LinearOpBase<Scalar> >,
72 typedef MultiVectorBase<Scalar>
MV;
74 typedef LinearOpBase<Scalar>
OP;
87 const int convergenceTestFrequency);
97 virtual Belos::StatusType
checkStatus(Belos::Iteration<Scalar,MV,OP> *iSolver);
99 virtual Belos::StatusType
getStatus()
const;
101 virtual void reset();
103 virtual void print(std::ostream& os,
int indent)
const;
125 const Ptr<
const ReductionFunctional<Scalar> > &reductFunc,
126 const Ptr<
const VectorBase<Scalar> > &x,
127 const Ptr<
const VectorBase<Scalar> > &r
130 void printRhsStatus(
const int currIter,
const int j, std::ostream &out,
131 int indent = 0)
const;
140 template<
class Scalar>
143 const SolveCriteria<Scalar> &solveCriteria,
144 const int convergenceTestFrequency
149 gscbst->setSolveCriteria(solveCriteria, convergenceTestFrequency);
157 #endif // THYRA_GENERAL_SOLVE_CRITERIA_BELOS_STATUS_TEST_DECL_HPP
GeneralSolveCriteriaBelosStatusTest()
SolveCriteria< Scalar > solveCriteria_
Subclass of Belos::StatusTest that implements every possible form of SolveCriteria that exists by for...
ArrayView< const ScalarMag > achievedTol() const
LinearOpBase< Scalar > OP
Array< ScalarMag > b_nrm_
RCP< GeneralSolveCriteriaBelosStatusTest< Scalar > > createGeneralSolveCriteriaBelosStatusTest(const SolveCriteria< Scalar > &solveCriteria, const int convergenceTestFrequency)
Nonmember constructor.
MultiVectorBase< Scalar > MV
virtual Belos::StatusType getStatus() const
void printRhsStatus(const int currIter, const int j, std::ostream &out, int indent=0) const
Array< ScalarMag > lastNumerator_
Array< ScalarMag > lastAchievedTol_
virtual Belos::StatusType checkStatus(Belos::Iteration< Scalar, MV, OP > *iSolver)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Array< ScalarMag > lastDenominator_
ScalarTraits< Scalar >::magnitudeType ScalarMag
ScalarMag computeReductionFunctional(ESolveMeasureNormType measureType, const Ptr< const ReductionFunctional< Scalar > > &reductFunc, const Ptr< const VectorBase< Scalar > > &x, const Ptr< const VectorBase< Scalar > > &r) const
void setSolveCriteria(const SolveCriteria< Scalar > &solveCriteria, const int convergenceTestFrequency)
Array< ScalarMag > r0_nrm_
Belos::StatusType lastRtnStatus_
int convergenceTestFrequency_
virtual void print(std::ostream &os, int indent) const