10 #ifndef THYRA_BELOS_LINEAR_OP_WITH_SOLVE_FACTORY_DECL_HPP
11 #define THYRA_BELOS_LINEAR_OP_WITH_SOLVE_FACTORY_DECL_HPP
13 #include "Thyra_LinearOpWithSolveFactoryBase.hpp"
14 #include "Teuchos_StandardMemberCompositionMacros.hpp"
15 #include "Teuchos_StandardCompositionMacros.hpp"
18 namespace Teuchos {
class ParameterList; }
25 enum EBelosSolverType {
26 SOLVER_TYPE_BLOCK_GMRES,
27 SOLVER_TYPE_PSEUDO_BLOCK_GMRES,
29 SOLVER_TYPE_PSEUDO_BLOCK_CG,
30 SOLVER_TYPE_PSEUDO_BLOCK_STOCHASTIC_CG,
36 SOLVER_TYPE_FIXEDPOINT,
37 SOLVER_TYPE_TPETRA_GMRES,
38 SOLVER_TYPE_TPETRA_GMRES_PIPELINE,
39 SOLVER_TYPE_TPETRA_GMRES_SINGLE_REDUCE,
40 SOLVER_TYPE_TPETRA_GMRES_SSTEP
45 inline std::istream& operator>>(
46 std::istream& is, EBelosSolverType& sType)
50 sType = (EBelosSolverType)intval;
62 template<
class Scalar>
138 ,
const std::string &precFactoryName
145 ,std::string *precFactoryName
222 std::string precFactoryName_;
225 EBelosSolverType solverType_;
226 int convergenceTestFrequency_;
233 void updateThisValidParamList();
235 void initializeOpImpl(
239 ,
const bool reusePrec
250 #endif // THYRA_BELOS_LINEAR_OP_WITH_SOLVE_FACTORY_DECL_HPP
static const std::string TpetraGmresPipeline_name
static const std::string BlockGMRES_name
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
static const std::string RCG_name
void uninitializeOp(LinearOpWithSolveBase< Scalar > *Op, Teuchos::RCP< const LinearOpSourceBase< Scalar > > *fwdOpSrc, Teuchos::RCP< const PreconditionerBase< Scalar > > *prec, Teuchos::RCP< const LinearOpSourceBase< Scalar > > *approxFwdOpSrc, ESupportSolveUse *supportSolveUse) const
static const std::string MINRES_name
void initializeAndReuseOp(const Teuchos::RCP< const LinearOpSourceBase< Scalar > > &fwdOpSrc, LinearOpWithSolveBase< Scalar > *Op) const
static const std::string FixedPoint_name
static const std::string SolverTypes_name
void unsetPreconditionerFactory(Teuchos::RCP< PreconditionerFactoryBase< Scalar > > *precFactory, std::string *precFactoryName)
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const ¶mList)
static const std::string ConvergenceTestFrequency_name
bool isCompatible(const LinearOpSourceBase< Scalar > &fwdOpSrc) const
static const std::string BiCGStab_name
static const std::string BlockCG_name
static const std::string PseudoBlockGMRES_name
static const std::string TpetraGmres_name
bool acceptsPreconditionerFactory() const
Returns true .
static const std::string PseudoBlockCG_name
Teuchos::RCP< Teuchos::ParameterList > getNonconstParameterList()
void initializeOp(const Teuchos::RCP< const LinearOpSourceBase< Scalar > > &fwdOpSrc, LinearOpWithSolveBase< Scalar > *Op, const ESupportSolveUse supportSolveUse) const
std::string description() const
void setPreconditionerFactory(const Teuchos::RCP< PreconditionerFactoryBase< Scalar > > &precFactory, const std::string &precFactoryName)
LinearOpWithSolveFactoryBase subclass implemented in terms of Belos.
bool supportsPreconditionerInputType(const EPreconditionerInputType precOpType) const
Teuchos::ScalarTraits< Scalar >::magnitudeType MagnitudeType
Teuchos::RCP< const Teuchos::ParameterList > getParameterList() const
Teuchos::RCP< PreconditionerFactoryBase< Scalar > > getPreconditionerFactory() const
static const std::string PseudoBlockStochasticCG_name
void initializeApproxPreconditionedOp(const Teuchos::RCP< const LinearOpSourceBase< Scalar > > &fwdOpSrc, const Teuchos::RCP< const LinearOpSourceBase< Scalar > > &approxFwdOpSrc, LinearOpWithSolveBase< Scalar > *Op, const ESupportSolveUse supportSolveUse) const
static const std::string SolverType_default
void initializePreconditionedOp(const Teuchos::RCP< const LinearOpSourceBase< Scalar > > &fwdOpSrc, const Teuchos::RCP< const PreconditionerBase< Scalar > > &prec, LinearOpWithSolveBase< Scalar > *Op, const ESupportSolveUse supportSolveUse) const
Teuchos::RCP< LinearOpWithSolveBase< Scalar > > createOp() const
BelosLinearOpWithSolveFactory()
Construct without preconditioner factory.
Teuchos::RCP< Teuchos::ParameterList > unsetParameterList()
static const std::string SolverType_name
static const std::string TFQMR_name
static const std::string TpetraGmresSingleReduce_name
static const std::string GCRODR_name
static const std::string TpetraGmresSstep_name