Ifpack2 Templated Preconditioning Package  Version 1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Ifpack2_Details_LinearSolverFactory_decl.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Ifpack2: Templated Object-Oriented Algebraic Preconditioner Package
4 //
5 // Copyright 2009 NTESS and the Ifpack2 contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
13 
14 #ifndef IFPACK2_DETAILS_LINEARSOLVERFACTORY_DECL_HPP
15 #define IFPACK2_DETAILS_LINEARSOLVERFACTORY_DECL_HPP
16 
17 #include "Ifpack2_ConfigDefs.hpp"
19 #include "Tpetra_Operator.hpp"
20 
21 namespace Ifpack2 {
22 namespace Details {
23 
30 template<class SC, class LO, class GO, class NT>
32  public Trilinos::Details::LinearSolverFactory<Tpetra::MultiVector<SC, LO, GO, NT>,
33  Tpetra::Operator<SC, LO, GO, NT>,
34  typename Tpetra::MultiVector<SC, LO, GO, NT>::mag_type>
35 {
36 public:
38  Tpetra::Operator<SC, LO, GO, NT>,
39  typename Tpetra::MultiVector<SC, LO, GO, NT>::mag_type> solver_type;
40 
51  getLinearSolver (const std::string& solverName);
52 
66  static void registerLinearSolverFactory ();
67 };
68 
69 } // namespace Details
70 } // namespace Ifpack2
71 
72 #endif // IFPACK2_DETAILS_LINEARSOLVERFACTORY_DECL_HPP
Definition: Ifpack2_AdditiveSchwarz_decl.hpp:36
static void registerLinearSolverFactory()
Register this LinearSolverFactory with the central registry.
Definition: Ifpack2_Details_LinearSolverFactory_def.hpp:76
Interface for a &quot;factory&quot; that creates Ifpack2 solvers.
Definition: Ifpack2_Details_LinearSolverFactory_decl.hpp:31
virtual Teuchos::RCP< solver_type > getLinearSolver(const std::string &solverName)
Get an instance of a Ifpack2 solver.
Definition: Ifpack2_Details_LinearSolverFactory_def.hpp:30