42 #ifndef THYRA_AZTECOO_LINEAR_OP_WITH_SOLVE_FACTORY_HPP 43 #define THYRA_AZTECOO_LINEAR_OP_WITH_SOLVE_FACTORY_HPP 45 #include "Thyra_LinearOpWithSolveFactoryBase.hpp" 46 #include "Thyra_EpetraOperatorViewExtractorBase.hpp" 47 #include "Teuchos_StandardMemberCompositionMacros.hpp" 48 #include "Teuchos_StandardCompositionMacros.hpp" 51 namespace Teuchos {
class ParameterList; }
87 Teuchos::RCP<Teuchos::ParameterList>
const& paramList = Teuchos::null
108 const Teuchos::RCP<PreconditionerFactoryBase<double> > &precFactory,
109 const std::string &precFactoryName
115 Teuchos::RCP<PreconditionerFactoryBase<double> > *precFactory,
116 std::string *precFactoryName
119 bool isCompatible(
const LinearOpSourceBase<double> &fwdOpSrc )
const;
121 Teuchos::RCP<LinearOpWithSolveBase<double> >
createOp()
const;
124 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc,
125 LinearOpWithSolveBase<double> *Op,
126 const ESupportSolveUse supportSolveUse
130 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc,
131 LinearOpWithSolveBase<double> *Op
135 LinearOpWithSolveBase<double> *Op,
136 Teuchos::RCP<
const LinearOpSourceBase<double> > *fwdOpSrc,
137 Teuchos::RCP<
const PreconditionerBase<double> > *prec,
138 Teuchos::RCP<
const LinearOpSourceBase<double> > *approxFwdOpSrc,
139 ESupportSolveUse *supportSolveUse
145 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc,
146 const Teuchos::RCP<
const PreconditionerBase<double> > &prec,
147 LinearOpWithSolveBase<double> *Op,
148 const ESupportSolveUse supportSolveUse
152 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc,
153 const Teuchos::RCP<
const LinearOpSourceBase<double> > &approxFwdOpSrc,
154 LinearOpWithSolveBase<double> *Op,
155 const ESupportSolveUse supportSolveUse
163 void setParameterList(Teuchos::RCP<Teuchos::ParameterList>
const& paramList);
188 Teuchos::RCP<PreconditionerFactoryBase<double> > precFactory_;
189 std::string precFactoryName_;
190 Teuchos::RCP<Teuchos::ParameterList> thisValidParamList_;
191 Teuchos::RCP<Teuchos::ParameterList> paramList_;
193 int defaultFwdMaxIterations_;
194 double defaultFwdTolerance_;
195 int defaultAdjMaxIterations_;
196 double defaultAdjTolerance_;
197 bool outputEveryRhs_;
204 static Teuchos::RCP<const Teuchos::ParameterList> generateAndGetValidParameters();
205 void updateThisValidParamList();
207 void initializeOp_impl(
208 const Teuchos::RCP<
const LinearOpSourceBase<double> > &fwdOpSrc,
209 const Teuchos::RCP<
const PreconditionerBase<double> > &prec,
210 const Teuchos::RCP<
const LinearOpSourceBase<double> > &approxFwdOpSrc,
211 const bool reusePrec,
212 LinearOpWithSolveBase<double> *Op
221 #endif // THYRA_AZTECOO_LINEAR_OP_WITH_SOLVE_FACTORY_HPP Teuchos::RCP< PreconditionerFactoryBase< double > > getPreconditionerFactory() const
bool acceptsPreconditionerFactory() const
Returns true .
LinearOpWithSolveFactoryBase subclass implemented in terms of AztecOO.
STANDARD_COMPOSITION_MEMBERS(EpetraOperatorViewExtractorBase, epetraFwdOpViewExtractor)
Set the strategy object used to extract an Epetra_Operator view of an input forward operator...
bool supportsPreconditionerInputType(const EPreconditionerInputType precOpType) const
AztecOOLinearOpWithSolveFactory(Teuchos::RCP< Teuchos::ParameterList > const ¶mList=Teuchos::null)
Construct uninitialized.
void initializeAndReuseOp(const Teuchos::RCP< const LinearOpSourceBase< double > > &fwdOpSrc, LinearOpWithSolveBase< double > *Op) const
std::string description() const
void initializeApproxPreconditionedOp(const Teuchos::RCP< const LinearOpSourceBase< double > > &fwdOpSrc, const Teuchos::RCP< const LinearOpSourceBase< double > > &approxFwdOpSrc, LinearOpWithSolveBase< double > *Op, const ESupportSolveUse supportSolveUse) const
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
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
Teuchos::RCP< Teuchos::ParameterList > unsetParameterList()
void unsetPreconditionerFactory(Teuchos::RCP< PreconditionerFactoryBase< double > > *precFactory, std::string *precFactoryName)
Teuchos::RCP< LinearOpWithSolveBase< double > > createOp() const
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const ¶mList)
Teuchos::RCP< const Teuchos::ParameterList > getParameterList() const
bool isCompatible(const LinearOpSourceBase< double > &fwdOpSrc) const
void initializePreconditionedOp(const Teuchos::RCP< const LinearOpSourceBase< double > > &fwdOpSrc, const Teuchos::RCP< const PreconditionerBase< double > > &prec, LinearOpWithSolveBase< double > *Op, const ESupportSolveUse supportSolveUse) const
void initializeOp(const Teuchos::RCP< const LinearOpSourceBase< double > > &fwdOpSrc, LinearOpWithSolveBase< double > *Op, const ESupportSolveUse supportSolveUse) const
void setPreconditionerFactory(const Teuchos::RCP< PreconditionerFactoryBase< double > > &precFactory, const std::string &precFactoryName)
Teuchos::RCP< Teuchos::ParameterList > getNonconstParameterList()