44 #ifndef THYRA_AMESOS_LINEAR_OP_WITH_SOLVE_FACTORY_HPP
45 #define THYRA_AMESOS_LINEAR_OP_WITH_SOLVE_FACTORY_HPP
47 #include "Thyra_LinearOpWithSolveFactoryBase.hpp"
49 #include "Amesos_BaseSolver.h"
109 #ifdef HAVE_AMESOS_KLU
115 ,
const bool throwOnPrecInput =
true
136 bool isCompatible(
const LinearOpSourceBase<double> &fwdOpSrc )
const;
143 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc
144 ,LinearOpWithSolveBase<double> *Op
145 ,
const ESupportSolveUse supportSolveUse
155 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc
156 ,
const Teuchos::RCP<
const PreconditionerBase<double> > &prec
157 ,LinearOpWithSolveBase<double> *Op
158 ,
const ESupportSolveUse supportSolveUse
165 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc
166 ,
const Teuchos::RCP<
const LinearOpSourceBase<double> > &approxFwdOpSrc
167 ,LinearOpWithSolveBase<double> *Op
168 ,
const ESupportSolveUse supportSolveUse
173 LinearOpWithSolveBase<double> *Op
174 ,
Teuchos::RCP<
const LinearOpSourceBase<double> > *fwdOpSrc
176 ,
Teuchos::RCP<
const LinearOpSourceBase<double> > *approxFwdOpSrc
177 ,ESupportSolveUse *supportSolveUse
226 #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()