MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_RebalanceAcFactory_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_REBALANCEACFACTORY_DECL_HPP
11 #define MUELU_REBALANCEACFACTORY_DECL_HPP
12 
13 #include <Xpetra_Matrix_fwd.hpp>
15 
16 #include "MueLu_ConfigDefs.hpp"
19 
21 #include "MueLu_Level_fwd.hpp"
22 #include "MueLu_RAPFactory_fwd.hpp"
23 #include "MueLu_PerfUtils_fwd.hpp"
24 
25 namespace MueLu {
30 template <class Scalar = DefaultScalar,
33  class Node = DefaultNode>
35 #undef MUELU_REBALANCEACFACTORY_SHORT
36 #include "MueLu_UseShortNames.hpp"
37 
38  public:
40 
41 
43 
44  virtual ~RebalanceAcFactory();
45 
48 
50 
51 
52  void DeclareInput(Level &fineLevel, Level &coarseLevel) const;
53 
55 
57 
58  void Build(Level &fineLevel, Level &coarseLevel) const;
60 
62 
67  void AddRebalanceFactory(const RCP<const FactoryBase> &factory);
68 
70  size_t NumRebalanceFactories() const { return rebalanceFacts_.size(); }
71 
73 
74  private:
76  std::vector<RCP<const FactoryBase> > rebalanceFacts_;
77 
78 }; // class RebalanceAcFactory
79 
80 } // namespace MueLu
81 
82 #define MUELU_REBALANCEACFACTORY_SHORT
83 #endif // MUELU_REBALANCEACFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
size_t NumRebalanceFactories() const
Returns number of transfer factories.
Base class for factories that use two levels (fineLevel and coarseLevel).
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
MueLu::DefaultNode Node
void AddRebalanceFactory(const RCP< const FactoryBase > &factory)
Add rebalancing factory in the end of list of rebalancing factories in RebalanceAcFactory.
MueLu::DefaultScalar Scalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
std::vector< RCP< const FactoryBase > > rebalanceFacts_
list of user-defined rebalancing Factories
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
Factory for building coarse matrices.