42 #ifndef BELOS_DETAILS_LINEARSOLVERFACTORY_HPP 43 #define BELOS_DETAILS_LINEARSOLVERFACTORY_HPP 50 #include "Trilinos_Details_LinearSolverFactory.hpp" 57 template<
class MV,
class OP,
class ScalarType,
class NormType>
59 public Trilinos::Details::LinearSolverFactory<MV, OP, NormType>
71 virtual Teuchos::RCP<Trilinos::Details::LinearSolver<MV, OP, NormType> >
95 #ifdef HAVE_TEUCHOSCORE_CXX11 96 typedef std::shared_ptr<this_type> ptr_type;
99 typedef Teuchos::RCP<this_type> ptr_type;
101 #endif // HAVE_TEUCHOSCORE_CXX11 103 ptr_type factory (
new this_type ());
104 Trilinos::Details::registerLinearSolverFactory<MV, OP, NormType> (
"Belos", factory);
Belos' implementation of Trilinos::Details::LinearSolver.
Implementation of Trilinos::Details::LinearSolver.
static void registerLinearSolverFactory()
Register this LinearSolverFactory with the central registry.
virtual Teuchos::RCP< Trilinos::Details::LinearSolver< MV, OP, NormType > > getLinearSolver(const std::string &solverName)
Get an instance of a Belos solver.