46 #ifndef MUELU_AMESOS2SMOOTHER_DECL_HPP 47 #define MUELU_AMESOS2SMOOTHER_DECL_HPP 50 #if defined(HAVE_MUELU_TPETRA) && defined(HAVE_MUELU_AMESOS2) 52 #include <Teuchos_ParameterList.hpp> 56 #include "MueLu_SmootherPrototype.hpp" 73 template <class Scalar = SmootherPrototype<>::scalar_type,
74 class LocalOrdinal =
typename SmootherPrototype<Scalar>::local_ordinal_type,
75 class GlobalOrdinal =
typename SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type,
76 class Node =
typename SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type>
78 #undef MUELU_AMESOS2SMOOTHER_SHORT 90 Amesos2Smoother(
const std::string& type =
"",
const Teuchos::ParameterList& paramList = Teuchos::ParameterList());
99 void DeclareInput(
Level& currentLevel)
const;
110 void Setup(
Level& currentLevel);
118 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
121 RCP<SmootherPrototype> Copy()
const;
127 std::string description()
const;
131 void print(Teuchos::FancyOStream& out,
const VerbLevel verbLevel =
Default)
const;
143 RCP<Amesos2::Solver<Tpetra_CrsMatrix, Tpetra_MultiVector> >
prec_;
147 #ifdef HAVE_MUELU_EPETRA 149 # if ((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_INT))) || \ 150 (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_INT)))) 158 #undef MUELU_AMESOS2SMOOTHER_SHORT 162 Amesos2Smoother(
const std::string& type =
"",
const Teuchos::ParameterList& paramList = Teuchos::ParameterList()) {
168 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const {};
169 RCP<SmootherPrototype>
Copy()
const {
return Teuchos::null; };
174 #endif // HAVE_MUELU_EPETRA 178 #define MUELU_AMESOS2SMOOTHER_SHORT 179 #endif // HAVE_MUELU_TPETRA && HAVE_MUELU_AMESOS2 180 #endif // MUELU_AMESOS2SMOOTHER_DECL_HPP void Setup(Level ¤tLevel)
std::string type_
amesos2-specific key phrase that denote smoother type
Base class for smoother prototypes.
virtual ~Amesos2Smoother()
Namespace for MueLu classes and methods.
Amesos2Smoother(const std::string &type="", const Teuchos::ParameterList ¶mList=Teuchos::ParameterList())
Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > Tpetra_MultiVector
Class that holds all level-specific information.
void DeclareInput(Level ¤tLevel) const
Input.
Class that encapsulates Amesos2 direct solvers.
Tpetra::CrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > Tpetra_CrsMatrix
#define MUELU_TPETRA_ETI_EXCEPTION(cl, obj, go)
RCP< SmootherPrototype > Copy() const
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
RCP< Amesos2::Solver< Tpetra_CrsMatrix, Tpetra_MultiVector > > prec_
pointer to Amesos2 solver object
std::string description() const
Return a simple one-line description of this object.
Kokkos::Compat::KokkosSerialWrapperNode EpetraNode
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply smoother.