Go to the documentation of this file.
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,
78 #undef MUELU_AMESOS2SMOOTHER_SHORT
90 Amesos2Smoother(
const std::string& type =
"",
const Teuchos::ParameterList& paramList = Teuchos::ParameterList());
118 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
121 RCP<SmootherPrototype>
Copy()
const;
146 RCP<Amesos2::Solver<Tpetra_CrsMatrix, Tpetra_MultiVector> >
prec_;
153 #ifdef HAVE_MUELU_EPETRA
155 # if ((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_INT))) || \
156 (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_INT))))
164 #undef MUELU_AMESOS2SMOOTHER_SHORT
168 Amesos2Smoother(
const std::string& type =
"",
const Teuchos::ParameterList& paramList = Teuchos::ParameterList()) {
174 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const {};
176 RCP<SmootherPrototype>
Copy()
const {
return Teuchos::null; };
185 #endif // HAVE_MUELU_EPETRA
189 #define MUELU_AMESOS2SMOOTHER_SHORT
190 #endif // HAVE_MUELU_TPETRA && HAVE_MUELU_AMESOS2
191 #endif // MUELU_AMESOS2SMOOTHER_DECL_HPP
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
Class that encapsulates Amesos2 direct solvers.
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.
RCP< SmootherPrototype > Copy() const
GlobalOrdinal global_ordinal_type
Amesos2Smoother(const std::string &type="", const Teuchos::ParameterList ¶mList=Teuchos::ParameterList())
Constructor Creates a MueLu interface to the direct solvers in the Amesos2 package....
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
void DeclareInput(Level ¤tLevel) const
Input.
Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > Tpetra_MultiVector
Namespace for MueLu classes and methods.
void Setup(Level ¤tLevel)
Set up the direct solver. This creates the underlying Amesos2 solver object according to the paramete...
std::string description() const
Return a simple one-line description of this object.
Kokkos::Compat::KokkosSerialWrapperNode EpetraNode
Tpetra::CrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > Tpetra_CrsMatrix
virtual ~Amesos2Smoother()
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
RCP< SmootherPrototype > Copy() const
std::string type_
amesos2-specific key phrase that denote smoother type
void Setup(Level ¤tLevel)
virtual ~Amesos2Smoother()
Destructor.
Base class for smoother prototypes.
#define MUELU_TPETRA_ETI_EXCEPTION(cl, obj, go)
Amesos2Smoother(const std::string &type="", const Teuchos::ParameterList ¶mList=Teuchos::ParameterList())
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply smoother.
LocalOrdinal local_ordinal_type
Class that holds all level-specific information.
void DeclareInput(Level ¤tLevel) const
Input.
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the direct solver. Solves the linear system AX=B using the constructed solver.