47 #ifndef STRATIMIKOS_MUELU_TPETRA_HELPERS_HPP 48 #define STRATIMIKOS_MUELU_TPETRA_HELPERS_HPP 50 #include "Stratimikos_DefaultLinearSolverBuilder.hpp" 54 #if defined(HAVE_MUELU_EXPERIMENTAL) && defined(HAVE_MUELU_TEKO) 61 #include "Teuchos_AbstractFactoryStd.hpp" 70 template <
typename LocalOrdinal =
int,
typename GlobalOrdinal =
int,
typename Node = KokkosClassic::DefaultNode::DefaultNodeType>
71 void enableMueLu(DefaultLinearSolverBuilder& builder,
const std::string& stratName =
"MueLu")
76 "Stratimikos::enableMueLu cannot add \"" + stratName +
"\" because it is already included in builder!");
78 typedef Thyra::PreconditionerFactoryBase<double> Base;
81 builder.setPreconditioningStrategyFactory(Teuchos::abstractFactoryStd<Base, Impl>(), stratName);
84 #if defined(HAVE_MUELU_EXPERIMENTAL) && defined(HAVE_MUELU_TEKO) 87 void enableMueLuTpetraQ2Q1(DefaultLinearSolverBuilder &builder,
const std::string &stratName =
"MueLu");
93 template <
typename LocalOrdinal,
typename GlobalOrdinal,
typename Node>
98 "Stratimikos::enableMueLuTpetraQ2Q1 cannot add \"" + stratName +
"\" because it is already included in builder!");
100 typedef Thyra::PreconditionerFactoryBase<double> Base;
103 builder.setPreconditioningStrategyFactory(Teuchos::abstractFactoryStd<Base, Impl>(), stratName);
void enableMueLuTpetraQ2Q1(DefaultLinearSolverBuilder &builder, const std::string &stratName="MueLu")
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Concrete preconditioner factory subclass based on MueLu.
Concrete preconditioner factory subclass for Thyra based on MueLu.Add support for MueLu preconditione...
void enableMueLu(DefaultLinearSolverBuilder &builder, const std::string &stratName="MueLu")
bool isParameter(const std::string &name) const