10#ifndef MUELU_IFPACK2SMOOTHER_DECL_HPP
11#define MUELU_IFPACK2SMOOTHER_DECL_HPP
13#include <Teuchos_ParameterList.hpp>
15#include <Xpetra_BlockedCrsMatrix_fwd.hpp>
16#include <Xpetra_CrsMatrixWrap_fwd.hpp>
17#include <Xpetra_Matrix_fwd.hpp>
18#include <Xpetra_MultiVectorFactory_fwd.hpp>
19#include <Xpetra_TpetraCrsMatrix_fwd.hpp>
24#include <Tpetra_CrsMatrix.hpp>
26#include <Ifpack2_Factory_decl.hpp>
27#include <Ifpack2_Factory_def.hpp>
31#include "MueLu_SmootherPrototype.hpp"
47template <class Scalar = SmootherPrototype<>::scalar_type,
52#undef MUELU_IFPACK2SMOOTHER_SHORT
96 template <
class Scalar2,
class LocalOrdinal2,
class GlobalOrdinal2,
class Node2>
100 Ifpack2Smoother(
const std::string& type,
const Teuchos::ParameterList& paramList = Teuchos::ParameterList(),
const LO& overlap = 0);
136 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
143 RCP<SmootherPrototype>
Copy()
const;
167 void SetPrecParameters(
const Teuchos::ParameterList& list = Teuchos::ParameterList())
const;
190 RCP<Ifpack2::Preconditioner<Scalar, LocalOrdinal, GlobalOrdinal, Node> >
prec_;
199#define MUELU_IFPACK2SMOOTHER_SHORT
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that encapsulates Ifpack2 smoothers.
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
RCP< Ifpack2::Preconditioner< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getPreconditioner()
For diagnostic purposes.
void SetupSchwarz(Level ¤tLevel)
void Setup(Level ¤tLevel)
Set up the smoother.
Scalar SetupChebyshevEigenvalues(Level ¤tLevel, const std::string &matrixName, const std::string &label, Teuchos::ParameterList ¶mList) const
void SetupAggregate(Level ¤tLevel)
void SetupBlockRelaxation(Level ¤tLevel)
virtual ~Ifpack2Smoother()
Destructor.
void SetupChebyshev(Level ¤tLevel)
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
void SetParameterList(const Teuchos::ParameterList ¶mList)
Set parameters from a parameter list and return with default values.
RCP< SmootherPrototype > Copy() const
std::string description() const
Return a simple one-line description of this object.
bool constructionSuccessful_
void SetupHiptmair(Level ¤tLevel)
LO overlap_
overlap when using the smoother in additive Schwarz mode
RCP< Ifpack2::Preconditioner< Scalar, LocalOrdinal, GlobalOrdinal, Node > > prec_
pointer to Ifpack2 preconditioner object
void SetPrecParameters(const Teuchos::ParameterList &list=Teuchos::ParameterList()) const
void SetupTopological(Level ¤tLevel)
std::string type_
ifpack2-specific key phrase that denote smoother type
friend class Ifpack2Smoother
Constructor.
void DeclareInput(Level ¤tLevel) const
Input.
RCP< Operator > A_
matrix, used in apply if solving residual equation
void SetupLineSmoothing(Level ¤tLevel)
void SetupGeneric(Level ¤tLevel)
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the preconditioner.
Class that holds all level-specific information.
Base class for smoother prototypes.
GlobalOrdinal global_ordinal_type
LocalOrdinal local_ordinal_type
Namespace for MueLu classes and methods.