42 #ifndef BELOSSOLVERFACTORYBASE_HPP
43 #define BELOSSOLVERFACTORYBASE_HPP
49 #ifndef DOXYGEN_SHOULD_SKIP_THIS
54 #endif // DOXYGEN_SHOULD_SKIP_THIS
58 #ifndef DOXYGEN_SHOULD_SKIP_THIS
60 template<
class Scalar,
class MV,
class OP>
62 #endif // DOXYGEN_SHOULD_SKIP_THIS
80 template<
class Scalar,
class MV,
class OP>
114 getSolver (
const std::string& solverName,
132 virtual bool isSupported (
const std::string& solverName)
const = 0;
140 #endif // BELOSSOLVERFACTORYBASE_HPP
virtual int numSupportedSolvers() const =0
Number of supported solvers.
Interface for custom Belos solver factories.
virtual Teuchos::RCP< SolverManager< Scalar, MV, OP > > getSolver(const std::string &solverName, const Teuchos::RCP< Teuchos::ParameterList > &solverParams)=0
Return an instance of the specified solver, or Teuchos::null if this factory does not provide the req...
virtual ~CustomSolverFactory()
Destructor (virtual, for safety of derived classes).
virtual bool isSupported(const std::string &solverName) const =0
Whether the given solver name names a supported solver.
virtual std::vector< std::string > supportedSolverNames() const =0
List of supported solver names.