MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_SegregatedAFactory_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 #ifndef MUELU_SEGREGATEDAFACTORY_DECL_HPP
11 #define MUELU_SEGREGATEDAFACTORY_DECL_HPP
12 
14 
15 namespace MueLu {
16 
71 template <class Scalar = DefaultScalar,
74  class Node = DefaultNode>
76 #undef MUELU_SEGREGATEDAFACTORY_SHORT
77 #include "MueLu_UseShortNames.hpp"
78 
79  public:
81 
82 
84 
85  void DeclareInput(Level& currentLevel) const override;
86 
88 
94  void Build(Level& currentLevel) const override;
95 
96  private:
97  void BuildBasedOnBlockmap(Level& currentLevel) const;
98 
99  void BuildBasedOnMapPair(Level& currentLevel) const;
100 
101  // RCP<const Map> CreateRedundantMaps(Teuchos::RCP<const Map> localDropMap, Teuchos::RCP<const Matrix> Ain) const;
102 
103 }; // class SegregatedAFactory
104 
105 } // namespace MueLu
106 
107 #define MUELU_SEGREGATEDAFACTORY_SHORT
108 #endif // MUELU_SEGREGATEDAFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
void Build(Level &currentLevel) const override
Build method.
MueLu::DefaultNode Node
void BuildBasedOnBlockmap(Level &currentLevel) const
MueLu::DefaultScalar Scalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
void DeclareInput(Level &currentLevel) const override
Specifies the data that this class needs, and the factories that generate that data.
RCP< const ParameterList > GetValidParameterList() const override
Input.
Factory for building a new &quot;segregated&quot; A operator. Here, &quot;segregated&quot; means that the user provides s...
void BuildBasedOnMapPair(Level &currentLevel) const
Base class for factories that use one level (currentLevel).