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"
52 #include "Teuchos_VerboseObject.hpp"
62 template<
class Scalar>
64 :
public Belos::StatusTest<Scalar, MultiVectorBase<Scalar>, LinearOpBase<Scalar> >,
87 const int convergenceTestFrequency);
101 virtual void reset();
103 virtual void print(std::ostream& os,
int indent)
const;
109 int convergenceTestFrequency_;
114 Array<ScalarMag> r0_nrm_;
115 Array<ScalarMag> b_nrm_;
116 Array<ScalarMag> lastNumerator_;
117 Array<ScalarMag> lastDenominator_;
118 Array<ScalarMag> lastAchievedTol_;
130 void printRhsStatus(
const int currIter,
const int j, std::ostream &out,
131 int indent = 0)
const;
140 template<
class Scalar>
144 const int convergenceTestFrequency
149 gscbst->setSolveCriteria(solveCriteria, convergenceTestFrequency);
157 #endif // THYRA_GENERAL_SOLVE_CRITERIA_BELOS_STATUS_TEST_DECL_HPP
GeneralSolveCriteriaBelosStatusTest()
Subclass of Belos::StatusTest that implements every possible form of SolveCriteria that exists by for...
ArrayView< const ScalarMag > achievedTol() const
LinearOpBase< Scalar > OP
RCP< GeneralSolveCriteriaBelosStatusTest< Scalar > > createGeneralSolveCriteriaBelosStatusTest(const SolveCriteria< Scalar > &solveCriteria, const int convergenceTestFrequency)
Nonmember constructor.
MultiVectorBase< Scalar > MV
virtual Belos::StatusType getStatus() const
virtual Belos::StatusType checkStatus(Belos::Iteration< Scalar, MV, OP > *iSolver)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
ScalarTraits< Scalar >::magnitudeType ScalarMag
void setSolveCriteria(const SolveCriteria< Scalar > &solveCriteria, const int convergenceTestFrequency)
virtual void print(std::ostream &os, int indent) const