46 #ifndef MUELU_IFPACKSMOOTHER_HPP
47 #define MUELU_IFPACKSMOOTHER_HPP
50 #if defined(HAVE_MUELU_EPETRA) && defined(HAVE_MUELU_IFPACK)
52 #include <Teuchos_ParameterList.hpp>
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
122 IfpackSmoother(std::string
const & type, Teuchos::ParameterList
const & paramList = Teuchos::ParameterList(), LO
const &overlap=0);
156 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
163 RCP<SmootherPrototype>
Copy()
const;
184 void SetPrecParameters(
const Teuchos::ParameterList& list = Teuchos::ParameterList())
const;
205 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
206 RCP<MueLu::SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal, Node> >
208 const Teuchos::ParameterList& paramList = Teuchos::ParameterList (),
209 const LocalOrdinal& overlap = 0)
211 TEUCHOS_TEST_FOR_EXCEPTION(
true,
Exceptions::RuntimeError,
"IfpackSmoother cannot be used with Scalar != double, LocalOrdinal != int, GlobalOrdinal != int");
212 TEUCHOS_UNREACHABLE_RETURN(Teuchos::null);
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