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