MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_SchurComplementFactory_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 
10 /*
11  * MueLu_SchurComplementFactory_decl.hpp
12  *
13  * Created on: Jun 18, 2012
14  * Author: wiesner
15  */
16 
17 #ifndef MUELU_SCHURCOMPLEMENTFACTORY_DECL_HPP_
18 #define MUELU_SCHURCOMPLEMENTFACTORY_DECL_HPP_
19 
20 #include "MueLu_ConfigDefs.hpp"
21 
23 
24 #include <Xpetra_CrsMatrix_fwd.hpp>
25 #include <Xpetra_Map_fwd.hpp>
26 
29 
30 namespace MueLu {
31 
66 template <class Scalar = DefaultScalar,
69  class Node = DefaultNode>
71 #undef MUELU_SCHURCOMPLEMENTFACTORY_SHORT
72 #include "MueLu_UseShortNames.hpp"
73 
74  public:
76 
77 
79  SchurComplementFactory() = default;
80 
82 
83 
84  void DeclareInput(Level& currentLevel) const;
85 
87 
89 
91 
94  void Build(Level& currentLevel) const;
95 
97 
98  private:
101 
102 }; // class SchurComplementFactory
103 
104 } // namespace MueLu
105 
106 #define MUELU_SCHURCOMPLEMENTFACTORY_SHORT
107 #endif /* MUELU_SCHURCOMPLEMENTFACTORY_DECL_HPP_ */
RCP< Matrix > ComputeSchurComplement(RCP< BlockedCrsMatrix > &bA, RCP< Matrix > &Ainv) const
Schur complement calculation method.
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
void DeclareInput(Level &currentLevel) const
Input.
MueLu::DefaultNode Node
MueLu::DefaultScalar Scalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void Build(Level &currentLevel) const
Build an object with this factory.
Factory for building the Schur Complement for a 2x2 block matrix.
SchurComplementFactory()=default
Constructor.
Base class for factories that use one level (currentLevel).