MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_Details_LinearSolverFactory_decl.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // MueLu: A package for multigrid based preconditioning
4 //
5 // Copyright 2012 NTESS and the MueLu contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
13 
14 #ifndef MUELU_DETAILS_LINEARSOLVERFACTORY_DECL_HPP
15 #define MUELU_DETAILS_LINEARSOLVERFACTORY_DECL_HPP
16 
17 #include "MueLu_config.hpp"
19 
20 namespace MueLu {
21 namespace Details {
22 
42 template <class MV, class OP, class NormType>
44  public:
55  getLinearSolver(const std::string& solverName);
56 
70  static void registerLinearSolverFactory();
71 };
72 
73 } // namespace Details
74 } // namespace MueLu
75 
76 #endif // MUELU_DETAILS_LINEARSOLVERFACTORY_DECL_HPP
Interface for a &quot;factory&quot; that creates MueLu solvers.
virtual Teuchos::RCP< Trilinos::Details::LinearSolver< MV, OP, NormType > > getLinearSolver(const std::string &solverName)
Get an instance of a MueLu solver.
static void registerLinearSolverFactory()
Register this LinearSolverFactory with the central registry.