46 #ifndef MUELU_IFPACKSMOOTHER_HPP
47 #define MUELU_IFPACKSMOOTHER_HPP
50 #if defined(HAVE_MUELU_EPETRA) && defined(HAVE_MUELU_IFPACK)
53 #include <Xpetra_Matrix.hpp>
54 #include <Xpetra_MultiVectorFactory_fwd.hpp>
58 #include "MueLu_SmootherPrototype.hpp"
75 template <class Node = typename SmootherPrototype<double,int,int>::node_type>
80 #undef MUELU_IFPACKSMOOTHER_SHORT
156 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
205 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
216 #if defined(HAVE_MUELU_EPETRA)
218 inline RCP<MueLu::SmootherPrototype<double, int, int, Xpetra::EpetraNode> >
219 GetIfpackSmoother<double, int, int, Xpetra::EpetraNode> (
const std::string& type,
const Teuchos::ParameterList& paramList,
const int& overlap) {
226 #define MUELU_IFPACKSMOOTHER_SHORT
227 #endif // HAVE_MUELU_EPETRA && HAVE_MUELU_IFPACK
228 #endif // MUELU_IFPACKSMOOTHER_HPP
void Setup(Level ¤tLevel)
Set up the smoother.
RCP< SmootherPrototype > Copy() const
MueLu::DefaultLocalOrdinal LocalOrdinal
void SetPrecParameters(const Teuchos::ParameterList &list=Teuchos::ParameterList()) const
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
virtual ~IfpackSmoother()
Destructor.
Base class for smoother prototypes.
IfpackSmoother(std::string const &type, Teuchos::ParameterList const ¶mList=Teuchos::ParameterList(), LO const &overlap=0)
Constructor.
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
RCP< MueLu::SmootherPrototype< Scalar, LocalOrdinal, GlobalOrdinal, Node > > GetIfpackSmoother(const std::string &="", const Teuchos::ParameterList &=Teuchos::ParameterList(), const LocalOrdinal &=0)
void DeclareInput(Level ¤tLevel) const
Input.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
RCP< Ifpack_Preconditioner > prec_
pointer to Ifpack solver object
std::string type_
ifpack-specific key phrase that denote smoother type
Class that holds all level-specific information.
LO overlap_
overlap when using the smoother in additive Schwarz mode
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
RCP< Matrix > A_
Matrix. Not used directly, but held inside of prec_. So we have to keep an RCP pointer to it! ...
void SetParameterList(const Teuchos::ParameterList ¶mList)
Set parameters from a parameter list and return with default values.
#define TEUCHOS_UNREACHABLE_RETURN(dummyReturnVal)
std::string description() const
Return a simple one-line description of this object.
Exception throws to report errors in the internal logical of the program.
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the preconditioner.
Class that encapsulates Ifpack smoothers.