MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_RebalanceBlockAcFactory_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_REBALANCEBLOCKACFACTORY_DECL_HPP_
11 #define MUELU_REBALANCEBLOCKACFACTORY_DECL_HPP_
12 
13 #include <Xpetra_Matrix_fwd.hpp>
14 #include <Xpetra_CrsMatrix_fwd.hpp>
17 #include <Xpetra_Vector_fwd.hpp>
20 
21 #include "MueLu_ConfigDefs.hpp"
23 
26 #include "MueLu_Level_fwd.hpp"
27 #include "MueLu_PerfUtils_fwd.hpp"
29 #include "MueLu_Types.hpp"
30 
31 namespace MueLu {
60 template <class Scalar = DefaultScalar,
63  class Node = DefaultNode>
65 #undef MUELU_REBALANCEBLOCKACFACTORY_SHORT
66 #include "MueLu_UseShortNames.hpp"
67  public:
69 
70 
72 
73  void DeclareInput(Level &fineLevel, Level &coarseLevel) const;
74 
78 
80 
81  void Build(Level &fineLevel, Level &coarseLevel) const;
83 
85 
90  void AddRebalanceFactory(const RCP<const FactoryBase> &factory);
91 
93  size_t NumRebalanceFactories() const { return rebalanceFacts_.size(); }
94 
96 
97  private:
99  std::vector<RCP<const FactoryBase> > rebalanceFacts_;
100 
102  std::vector<Teuchos::RCP<const FactoryManagerBase> > FactManager_;
103 
104 }; // class RebalanceAcFactory
105 
106 } // namespace MueLu
107 
108 #define MUELU_REBALANCEBLOCKACFACTORY_SHORT
109 
110 #endif /* MUELU_REBALANCEBLOCKACFACTORY_DECL_HPP_ */
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager)
Add a factory manager.
Base class for factories that use two levels (fineLevel and coarseLevel).
MueLu::DefaultNode Node
size_t NumRebalanceFactories() const
Returns number of transfer factories.
MueLu::DefaultScalar Scalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
void AddRebalanceFactory(const RCP< const FactoryBase > &factory)
Add rebalancing factory in the end of list of rebalancing factories in RebalanceAcFactory.
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 DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
std::vector< Teuchos::RCP< const FactoryManagerBase > > FactManager_
Input factories.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.