46 #ifndef MUELU_TRILINOSSMOOTHER_DECL_HPP 47 #define MUELU_TRILINOSSMOOTHER_DECL_HPP 49 #include <Teuchos_ParameterList.hpp> 51 #include <Xpetra_Matrix_fwd.hpp> 55 #include "MueLu_SmootherPrototype.hpp" 60 #if defined(HAVE_MUELU_IFPACK2) 62 #include "MueLu_Ifpack2Smoother.hpp" 65 #if defined(HAVE_MUELU_BELOS) 69 #if defined(HAVE_MUELU_STRATIMIKOS) && defined(HAVE_MUELU_TPETRA) 87 template <class Scalar = SmootherPrototype<>::scalar_type,
92 #undef MUELU_TRILINOSSMOOTHER_SHORT 112 TrilinosSmoother(
const std::string& type =
"",
const Teuchos::ParameterList& paramList = Teuchos::ParameterList(),
const LO& overlap = 0);
133 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
138 void SetFactory(
const std::string& varName,
const RCP<const FactoryBase>& factory);
141 RCP<SmootherPrototype>
Copy()
const;
144 template<
class Scalar2,
class LocalOrdinal2,
class GlobalOrdinal2,
class Node2>
203 RCP<SmootherPrototype>
s_;
213 #define MUELU_TRILINOSSMOOTHER_SHORT 214 #endif // MUELU_TRILINOSSMOOTHER_DECL_HPP size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
std::string errorStratimikos_
MueLu::DefaultLocalOrdinal LocalOrdinal
RCP< SmootherPrototype > Copy() const
When this prototype is cloned using Copy(), the clone is an Ifpack or an Ifpack2 smoother.
RCP< SmootherPrototype > sStratimikos_
RCP< SmootherPrototype > sTpetra_
virtual ~TrilinosSmoother()
Destructor.
Class that encapsulates external library smoothers.
static std::string Ifpack2ToIfpack1Type(const std::string &type)
Convert an Ifpack2 preconditioner name to Ifpack.
static Teuchos::ParameterList Ifpack2ToIfpack1Param(const Teuchos::ParameterList &ifpack2List)
Convert an Ifpack2 parameter list to Ifpack.
Base class for smoother prototypes.
void DeclareInput(Level ¤tLevel) const
Input.
Namespace for MueLu classes and methods.
LocalOrdinal local_ordinal_type
void Setup(Level ¤tLevel)
TrilinosSmoother cannot be turned into a smoother using Setup(). Setup() always returns a RuntimeErro...
friend class TrilinosSmoother
Friend declaration required for clone() functionality.
std::string description() const
Return a simple one-line description of this object.
RCP< SmootherPrototype > s_
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
std::string type_
ifpack1/2-specific key phrase that denote smoother type
RCP< FactoryBase > AFact_
A Factory.
RCP< SmootherPrototype > sEpetra_
Smoother.
GlobalOrdinal global_ordinal_type
RCP< SmootherPrototype > sBelos_
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
LO overlap_
overlap when using the smoother in additive Schwarz mode
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
TrilinosSmoother cannot be applied. Apply() always returns a RuntimeError exception.
RCP< SmootherPrototype > getSmoother()
For diagnostic purposes.
void SetFactory(const std::string &varName, const RCP< const FactoryBase > &factory)
Custom SetFactory.