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"
48#include "Thyra_AmesosTypes.hpp"
50#include "Thyra_EpetraOperatorViewExtractorBase.hpp"
51#include "Teuchos_StandardMemberCompositionMacros.hpp"
52#include "Teuchos_StandardCompositionMacros.hpp"
108 const Amesos::ESolverType solverType
109#ifdef HAVE_AMESOS_KLU
114 ,
const Amesos::ERefactorizationPolicy refactorizationPolicy = Amesos::REPIVOT_ON_REFACTORIZATION
115 ,
const bool throwOnPrecInput =
true
136 bool isCompatible(
const LinearOpSourceBase<double> &fwdOpSrc )
const;
139 Teuchos::RCP<LinearOpWithSolveBase<double> >
createOp()
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
175 ,Teuchos::RCP<
const PreconditionerBase<double> > *prec
176 ,Teuchos::RCP<
const LinearOpSourceBase<double> > *approxFwdOpSrc
177 ,ESupportSolveUse *supportSolveUse
186 void setParameterList(Teuchos::RCP<Teuchos::ParameterList>
const& paramList);
211 Amesos::ESolverType solverType_;
212 Amesos::ERefactorizationPolicy refactorizationPolicy_;
213 bool throwOnPrecInput_;
214 Teuchos::RCP<Teuchos::ParameterList> paramList_;
219 static Teuchos::RCP<const Teuchos::ParameterList>
220 generateAndGetValidParameters();
Concrete LinearOpWithSolveFactoryBase adapter subclass that uses Amesos direct solvers.
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
static const std::string SolverType_name
~AmesosLinearOpWithSolveFactory()
STANDARD_COMPOSITION_MEMBERS(EpetraOperatorViewExtractorBase, epetraFwdOpViewExtractor)
Set the strategy object used to extract an Epetra_Operator view of an input forward operator.
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,...
std::string description() const
Teuchos::RCP< const Teuchos::ParameterList > getParameterList() const
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
bool supportsPreconditionerInputType(const EPreconditionerInputType precOpType) const
Returns false .
Teuchos::RCP< LinearOpWithSolveBase< double > > createOp() const
static const std::string RefactorizationPolicy_name
Teuchos::RCP< Teuchos::ParameterList > unsetParameterList()
void initializeOp(const Teuchos::RCP< const LinearOpSourceBase< double > > &fwdOpSrc, LinearOpWithSolveBase< double > *Op, const ESupportSolveUse supportSolveUse) const
void initializePreconditionedOp(const Teuchos::RCP< const LinearOpSourceBase< double > > &fwdOpSrc, const Teuchos::RCP< const LinearOpSourceBase< double > > &approxFwdOpSrc, LinearOpWithSolveBase< double > *Op, const ESupportSolveUse supportSolveUse) const
Throws exception if this->throwOnPrecInput()==true and calls this->initializeOp(fwdOpSrc,...
static const std::string ThrowOnPreconditionerInput_name
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const ¶mList)
bool isCompatible(const LinearOpSourceBase< double > &fwdOpSrc) const
Returns true if dynamic_cast<const EpetraLinearOpBase*>(fwdOpSrc)!=NULL .
Teuchos::RCP< Teuchos::ParameterList > getNonconstParameterList()
static const std::string Amesos_Settings_name