10 #ifndef THYRA_AMESOS_LINEAR_OP_WITH_SOLVE_FACTORY_HPP
11 #define THYRA_AMESOS_LINEAR_OP_WITH_SOLVE_FACTORY_HPP
13 #include "Thyra_LinearOpWithSolveFactoryBase.hpp"
15 #include "Amesos_BaseSolver.h"
75 #ifdef HAVE_AMESOS_KLU
81 ,
const bool throwOnPrecInput =
true
102 bool isCompatible(
const LinearOpSourceBase<double> &fwdOpSrc )
const;
109 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc
110 ,LinearOpWithSolveBase<double> *Op
111 ,
const ESupportSolveUse supportSolveUse
121 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc
122 ,
const Teuchos::RCP<
const PreconditionerBase<double> > &prec
123 ,LinearOpWithSolveBase<double> *Op
124 ,
const ESupportSolveUse supportSolveUse
131 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc
132 ,
const Teuchos::RCP<
const LinearOpSourceBase<double> > &approxFwdOpSrc
133 ,LinearOpWithSolveBase<double> *Op
134 ,
const ESupportSolveUse supportSolveUse
139 LinearOpWithSolveBase<double> *Op
140 ,
Teuchos::RCP<
const LinearOpSourceBase<double> > *fwdOpSrc
142 ,
Teuchos::RCP<
const LinearOpSourceBase<double> > *approxFwdOpSrc
143 ,ESupportSolveUse *supportSolveUse
192 #endif // THYRA_AMESOS_LINEAR_OP_WITH_SOLVE_FACTORY_HPP
Concrete LinearOpWithSolveFactoryBase adapter subclass that uses Amesos direct solvers.
ERefactorizationPolicy
The policy used on refactoring a matrix.
bool supportsPreconditionerInputType(const EPreconditionerInputType precOpType) const
Returns false .
bool isCompatible(const LinearOpSourceBase< double > &fwdOpSrc) const
Returns true if dynamic_cast<const EpetraLinearOpBase*>(fwdOpSrc)!=NULL .
Amesos::ESolverType solverType_
~AmesosLinearOpWithSolveFactory()
static const std::string Amesos_Settings_name
static const std::string SolverType_name
static const std::string RefactorizationPolicy_name
static const std::string ThrowOnPreconditionerInput_name
Teuchos::RCP< const Teuchos::ParameterList > getParameterList() const
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const ¶mList)
Teuchos::RCP< Teuchos::ParameterList > getNonconstParameterList()
Amesos::ERefactorizationPolicy refactorizationPolicy_
Teuchos::RCP< Teuchos::ParameterList > paramList_
void uninitializeOp(LinearOpWithSolveBase< double > *Op, Teuchos::RCP< const LinearOpSourceBase< double > > *fwdOpSrc, Teuchos::RCP< const PreconditionerBase< double > > *prec, Teuchos::RCP< const LinearOpSourceBase< double > > *approxFwdOpSrc, ESupportSolveUse *supportSolveUse) const
Completely new pivoting will be used on refactorizations!
Teuchos::RCP< LinearOpWithSolveBase< double > > createOp() const
void initializeOp(const Teuchos::RCP< const LinearOpSourceBase< double > > &fwdOpSrc, LinearOpWithSolveBase< double > *Op, const ESupportSolveUse supportSolveUse) const
static Teuchos::RCP< const Teuchos::ParameterList > generateAndGetValidParameters()
void initializePreconditionedOp(const Teuchos::RCP< const LinearOpSourceBase< double > > &fwdOpSrc, const Teuchos::RCP< const PreconditionerBase< double > > &prec, LinearOpWithSolveBase< double > *Op, const ESupportSolveUse supportSolveUse) const
Throws exception if this->throwOnPrecInput()==true and calls this->initializeOp(fwdOpSrc,Op) otherwise.
AmesosLinearOpWithSolveFactory(const Amesos::ESolverType solverType=Amesos::LAPACK, const Amesos::ERefactorizationPolicy refactorizationPolicy=Amesos::REPIVOT_ON_REFACTORIZATION, const bool throwOnPrecInput=true)
Constructor which sets the defaults.
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
std::string description() const
STANDARD_COMPOSITION_MEMBERS(EpetraOperatorViewExtractorBase, epetraFwdOpViewExtractor)
Set the strategy object used to extract an Epetra_Operator view of an input forward operator...
Teuchos::RCP< Teuchos::ParameterList > unsetParameterList()