MueLu Version of the Day
Loading...
Searching...
No Matches
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>
14#include <Xpetra_MatrixFactory_fwd.hpp>
15
16#include "MueLu_ConfigDefs.hpp"
19
21#include "MueLu_Level_fwd.hpp"
24
25namespace MueLu {
30template <class Scalar = DefaultScalar,
33 class Node = DefaultNode>
35#undef MUELU_REBALANCEACFACTORY_SHORT
37
38 public:
40
41
43
45
46 RCP<const ParameterList> GetValidParameterList() const;
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
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Class that holds all level-specific information.
Factory for building coarse matrices.
void AddRebalanceFactory(const RCP< const FactoryBase > &factory)
Add rebalancing factory in the end of list of rebalancing factories in RebalanceAcFactory.
size_t NumRebalanceFactories() const
Returns number of transfer factories.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
std::vector< RCP< const FactoryBase > > rebalanceFacts_
list of user-defined rebalancing Factories
Base class for factories that use two levels (fineLevel and coarseLevel).
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar