00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #ifndef __Teko_PreconditionerInverseFactory_hpp__
00048 #define __Teko_PreconditionerInverseFactory_hpp__
00049
00050 #include "Teko_InverseFactory.hpp"
00051
00052 namespace Teko {
00053
00054 class PreconditionerInverseFactory : public InverseFactory {
00055 public:
00057
00058
00068 PreconditionerInverseFactory(const Teuchos::RCP<Thyra::PreconditionerFactoryBase<double> > & precFactory,
00069 const Teuchos::RCP<Teko::RequestHandler> & rh);
00070
00085 PreconditionerInverseFactory(const Teuchos::RCP<Thyra::PreconditionerFactoryBase<double> > & precFactory,
00086 const Teuchos::RCP<const Teuchos::ParameterList> & xtraParam,
00087 const Teuchos::RCP<Teko::RequestHandler> & rh);
00088
00090 PreconditionerInverseFactory(const PreconditionerInverseFactory & pFactory);
00092
00093 virtual ~PreconditionerInverseFactory() {}
00094
00107 virtual InverseLinearOp buildInverse(const LinearOp & linearOp) const;
00108
00121 virtual InverseLinearOp buildInverse(const LinearOp & linearOp, const PreconditionerState & parentState) const;
00122
00137 virtual void rebuildInverse(const LinearOp & source,InverseLinearOp & dest) const;
00138
00147 virtual Teuchos::RCP<const Teuchos::ParameterList> getParameterList() const;
00148
00163 virtual Teuchos::RCP<Teuchos::ParameterList> getRequestedParameters() const;
00164
00178 virtual bool updateRequestedParameters(const Teuchos::ParameterList & pl);
00179
00181 virtual std::string toString() const { return precFactory_->description(); }
00182
00184 Teuchos::RCP<const Thyra::PreconditionerFactoryBase<double> > getPrecFactory() const
00185 { return precFactory_; }
00186
00188 Teuchos::RCP<Thyra::PreconditionerFactoryBase<double> > getPrecFactory()
00189 { return precFactory_; }
00190
00199 void setupParameterListFromRequestHandler();
00200 protected:
00201
00202 Teuchos::RCP<Thyra::PreconditionerFactoryBase<double> > precFactory_;
00203 Teuchos::RCP<Teuchos::ParameterList> extraParams_;
00204
00205 private:
00206
00207 PreconditionerInverseFactory();
00208 };
00209
00210 }
00211
00212 #endif