10 #ifndef MUELU_BELOSSMOOTHER_DECL_HPP
11 #define MUELU_BELOSSMOOTHER_DECL_HPP
20 #if defined(HAVE_MUELU_BELOS)
24 #ifdef HAVE_XPETRA_TPETRA
25 #include "BelosTpetraAdapter.hpp"
26 #include <Tpetra_Operator.hpp>
27 #include <Tpetra_MultiVector.hpp>
31 #include "MueLu_SmootherPrototype.hpp"
34 #include <BelosSolverManager.hpp>
48 template <class Scalar = SmootherPrototype<>::scalar_type,
49 class LocalOrdinal =
typename SmootherPrototype<Scalar>::local_ordinal_type,
50 class GlobalOrdinal =
typename SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type,
51 class Node =
typename SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type>
53 #undef MUELU_BELOSSMOOTHER_SHORT
71 template <
class Scalar2,
class LocalOrdinal2,
class GlobalOrdinal2,
class Node2>
109 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
155 #ifdef HAVE_MUELU_EPETRA
157 #if ((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_INT))) || \
158 (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_INT))))
166 #undef MUELU_BELOSSMOOTHER_SHORT
172 template <
class Scalar2,
class LocalOrdinal2,
class GlobalOrdinal2,
class Node2>
185 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const {}
199 #endif // HAVE_MUELU_EPETRA
203 #define MUELU_BELOSSMOOTHER_SHORT
204 #endif // HAVE_MUELU_BELOS
205 #endif // MUELU_BELOSSMOOTHER_DECL_HPP
virtual ~BelosSmoother()=default
Destructor.
BelosSmoother(const std::string &type, const Teuchos::ParameterList ¶mList=Teuchos::ParameterList(), const LocalOrdinal &overlap=0)
MueLu::DefaultLocalOrdinal LocalOrdinal
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
RCP< Matrix > A_
matrix, used in apply if solving residual equation
Class that encapsulates Belos smoothers.
Base class for smoother prototypes.
void Setup(Level ¤tLevel)
Set up the smoother.
Tpetra::Operator< SC, LO, GO, NO > tOP
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
size_t getNodeSmootherComplexity() const
For diagnostic purposes.
RCP< SmootherPrototype > Copy() const
RCP< Belos::SolverManager< Scalar, tMV, tOP > > tSolver_
RCP< SmootherPrototype > Copy() const
RCP< Belos::LinearProblem< Scalar, tMV, tOP > > tBelosProblem_
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
void DeclareInput(Level ¤tLevel) const
Input.
#define MUELU_TPETRA_ETI_EXCEPTION(cl, obj, go)
void SetupBelos(Level ¤tLevel)
friend class BelosSmoother
Constructor.
void Setup(Level ¤tLevel)
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the preconditioner.
void SetParameterList(const Teuchos::ParameterList ¶mList)
Set parameters from a parameter list and return with default values.
Tpetra::MultiVector< SC, LO, GO, NO > tMV
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply smoother.
void SetParameterList(const Teuchos::ParameterList ¶mList)
Set parameters from a parameter list and return with default values.
void DeclareInput(Level ¤tLevel) const
Input.
std::string description() const
Return a simple one-line description of this object.
std::string description() const
Return a simple one-line description of this object.