42 #ifndef THYRA_LINEAR_OP_WITH_SOLVE_FACTORY_BASE_DEF_HPP
43 #define THYRA_LINEAR_OP_WITH_SOLVE_FACTORY_BASE_DEF_HPP
46 #include "Thyra_LinearOpWithSolveFactoryBase_decl.hpp"
52 template<
class Scalar>
59 template<
class Scalar>
67 ,
"Error, the concrete implementation described as \'"<<this->description()<<
"\' did not override this "
68 "setPreconditionerFactory(...) function and the default implementation throws this exception!"
73 template<
class Scalar>
81 template<
class Scalar>
84 ,std::string *precFactoryName
87 if(precFactory) *precFactory = Teuchos::null;
88 if(precFactoryName) *precFactoryName =
"";
92 template<
class Scalar>
98 this->initializeOp(fwdOpSrc,Op);
102 template<
class Scalar>
111 template<
class Scalar>
120 true,std::logic_error
121 ,
"Error, the concrete implementation described as \'"<<this->description()<<
"\' did not override this "
122 "initializePreconditionedOp(...) function and the default implementation throws this exception!"
127 template<
class Scalar>
136 true,std::logic_error
137 ,
"Error, the concrete implementation described as \'"<<this->description()<<
"\' did not override this "
138 "initializePreconditionedOp(...) function and the default implementation throws this exception!"
146 #endif // THYRA_LINEAR_OP_WITH_SOLVE_FACTORY_BASE_DEF_HPP
Base class for all linear operators that can support a high-level solve operation.
virtual void initializePreconditionedOp(const RCP< const LinearOpSourceBase< Scalar > > &fwdOpSrc, const RCP< const PreconditionerBase< Scalar > > &prec, LinearOpWithSolveBase< Scalar > *Op, const ESupportSolveUse supportSolveUse=SUPPORT_SOLVE_UNSPECIFIED) const
Initialize a pre-created LinearOpWithSolveBase object given a "compatible" LinearOpBase object and an...
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
virtual bool acceptsPreconditionerFactory() const
Determines if *this accepts external preconditioner factories.
Simple interface class to access a precreated preconditioner as one or more linear operators objects ...
virtual void unsetPreconditionerFactory(RCP< PreconditionerFactoryBase< Scalar > > *precFactory=NULL, std::string *precFactoryName=NULL)
Unset the preconditioner factory (if one is set).
virtual void initializeAndReuseOp(const RCP< const LinearOpSourceBase< Scalar > > &fwdOpSrc, LinearOpWithSolveBase< Scalar > *Op) const
Initialize a pre-created LinearOpWithSolveBase object given a "compatible" LinearOpBase object but al...
virtual void initializeApproxPreconditionedOp(const RCP< const LinearOpSourceBase< Scalar > > &fwdOpSrc, const RCP< const LinearOpSourceBase< Scalar > > &approxFwdOpSrc, LinearOpWithSolveBase< Scalar > *Op, const ESupportSolveUse supportSolveUse=SUPPORT_SOLVE_UNSPECIFIED) const
Initialize a pre-created LinearOpWithSolveBase object given a "compatible" forward LinearOpBase objec...
Factory interface for creating preconditioner objects from LinearOpBase objects.
Base interface for objects that can return a linear operator.
ESupportSolveUse
Enum that specifies how a LinearOpWithSolveBase object will be used for solves after it is constructe...
EPreconditionerInputType
Enum defining the status of a preconditioner object.
virtual bool supportsPreconditionerInputType(const EPreconditionerInputType precOpType) const
Determines if *this supports given preconditioner type.
virtual RCP< PreconditionerFactoryBase< Scalar > > getPreconditionerFactory() const
Get a preconditioner factory object.
virtual void setPreconditionerFactory(const RCP< PreconditionerFactoryBase< Scalar > > &precFactory, const std::string &precFactoryName)
Set a preconditioner factory object.