10 #ifndef STRATIMIKOS_BELOS_PREC_TPETRA_HELPERS_HPP
11 #define STRATIMIKOS_BELOS_PREC_TPETRA_HELPERS_HPP
13 #include "Stratimikos_LinearSolverBuilder.hpp"
24 namespace Stratimikos {
26 template <
typename MatrixType>
32 "Stratimikos::enableBelosPrecTpetra cannot add \"" + stratName +
"\" because it is already included in builder!");
34 typedef typename MatrixType::scalar_type scalar_type;
35 typedef Thyra::PreconditionerFactoryBase<scalar_type> Base;
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
bool isParameter(const std::string &name) const
void setPreconditioningStrategyFactory(const RCP< const AbstractFactory< Thyra::PreconditionerFactoryBase< Scalar > > > &precStrategyFactory, const std::string &precStrategyName, const bool makeDefault=false)
Set a new preconditioner strategy factory object.
Concrete preconditioner factory subclass based on Belos. (Yes, Belos solvers can also be used as prec...
void enableBelosPrecTpetra(LinearSolverBuilder< typename MatrixType::scalar_type > &builder, const std::string &stratName="BelosPrecTpetra")
Concrete subclass of Thyra::LinearSolverBuilderBase for creating Thyra::LinearOpWithSolveFactoryBase ...
RCP< const ParameterList > getValidParameters() const