10 #ifndef __Teko_MLLinearOp_hpp__
11 #define __Teko_MLLinearOp_hpp__
14 #include "Teko_BlockImplicitLinearOp.hpp"
18 class MultiLevelPreconditioner;
24 class MappingStrategy;
25 class EpetraOperatorWrapper;
28 class MLLinearOp :
public BlockImplicitLinearOp {
30 MLLinearOp(
const Teuchos::RCP<ML_Epetra::MultiLevelPreconditioner> &mlPrecOp);
33 virtual VectorSpace range()
const {
return productRange_; }
36 virtual VectorSpace domain()
const {
return productDomain_; }
50 virtual void implicitApply(
const BlockedMultiVector &x, BlockedMultiVector &y,
51 const double alpha = 1.0,
const double beta = 0.0)
const;
53 virtual void describe(Teuchos::FancyOStream &out_arg,
54 const Teuchos::EVerbosityLevel verbLevel)
const;
56 Teuchos::RCP<const ML_Epetra::MultiLevelPreconditioner> getMLPreconditioner()
const;
57 Teuchos::RCP<ML_Epetra::MultiLevelPreconditioner> getMLPreconditioner();
60 void extractConversionInformation(ML_Epetra::MultiLevelPreconditioner &mlPrec);
62 Teuchos::RCP<const Thyra::ProductVectorSpaceBase<double> >
64 Teuchos::RCP<const Thyra::ProductVectorSpaceBase<double> >
67 Teuchos::RCP<ML_Epetra::MultiLevelPreconditioner> mlPrecOp_;
68 Teuchos::RCP<Epetra::EpetraOperatorWrapper> Amat_;
69 Teuchos::RCP<const Epetra::MappingStrategy>
72 mutable Teuchos::RCP<Epetra_MultiVector> eX_, eY_;
77 MLLinearOp(
const MLLinearOp &);
80 Teuchos::RCP<const ML_Epetra::MultiLevelPreconditioner> getMLPreconditioner(
81 const Teko::LinearOp &lo);
virtual void implicitApply(const Thyra::EOpTransp M_trans, const BlockedMultiVector &x, BlockedMultiVector &y, const double alpha=1.0, const double beta=0.0) const
Perform a matrix vector multiply with this implicitly defined blocked operator.