MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_BlockedCoordinatesTransferFactory_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_BLOCKEDCOORDINATESTRANSFER_FACTORY_DECL_HPP
11 #define MUELU_BLOCKEDCOORDINATESTRANSFER_FACTORY_DECL_HPP
12 
13 #include "MueLu_ConfigDefs.hpp"
16 #include "Xpetra_Matrix_fwd.hpp"
17 
19 
20 namespace MueLu {
21 
53 template <class Scalar = DefaultScalar,
56  class Node = DefaultNode>
58 #undef MUELU_BLOCKEDCOORDINATESTRANSFERFACTORY_SHORT
59 #include "MueLu_UseShortNames.hpp"
60 
61  public:
63 
64 
74 
77 
79 
81 
83 
84 
90  void DeclareInput(Level &finelevel, Level &coarseLevel) const;
91 
93 
95 
96 
98  void Build(Level &fineLevel, Level &coarseLevel) const;
99 
101 
103 
106  void AddFactory(const RCP<const FactoryBase> &factory);
107 
109  size_t NumFactories() const { return subFactories_.size(); }
110 
112  private:
114  std::vector<RCP<const FactoryBase> > subFactories_;
115 
116 }; // class BlockedCoordinatesTransferFactory
117 
118 } // namespace MueLu
119 
120 #define MUELU_BLOCKEDCOORDINATESTRANSFERFACTORY_SHORT
121 #endif // MUELU_BLOCKEDCOORDINATESTRANSFER_FACTORY_DECL_HPP
void DeclareInput(Level &finelevel, Level &coarseLevel) const
Specifies the data that this class needs, and the factories that generate that data.
MueLu::DefaultLocalOrdinal LocalOrdinal
size_t NumFactories() const
Returns number of sub factories.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Class for transferring coordinates from a finer level to a coarser one for BlockedCrsMatrices. This basically combines the Coordinates generated by each separate block.
std::vector< RCP< const FactoryBase > > subFactories_
list of user-defined sub Factories
Base class for factories that use two levels (fineLevel and coarseLevel).
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
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
void AddFactory(const RCP< const FactoryBase > &factory)
Add (sub) coords factory in the end of list of factories in BlockedCoordinatesTransferFactory.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.