MueLu Version of the Day
Loading...
Searching...
No Matches
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>
15#include <Xpetra_CrsMatrixWrap_fwd.hpp>
16#include <Xpetra_MatrixFactory_fwd.hpp>
17#include <Xpetra_Vector_fwd.hpp>
18#include <Xpetra_MapExtractor_fwd.hpp>
19#include <Xpetra_MapExtractorFactory_fwd.hpp>
20
21#include "MueLu_ConfigDefs.hpp"
23
26#include "MueLu_Level_fwd.hpp"
29#include "MueLu_Types.hpp"
30
31namespace MueLu {
60template <class Scalar = DefaultScalar,
63 class Node = DefaultNode>
65#undef MUELU_REBALANCEBLOCKACFACTORY_SHORT
67 public:
69
70
71 RCP<const ParameterList> GetValidParameterList() const;
72
73 void DeclareInput(Level &fineLevel, Level &coarseLevel) const;
74
76 void AddFactoryManager(RCP<const FactoryManagerBase> FactManager);
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
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Class that holds all level-specific information.
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager)
Add a factory manager.
std::vector< RCP< const FactoryBase > > rebalanceFacts_
list of user-defined rebalancing Factories
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.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
size_t NumRebalanceFactories() const
Returns number of transfer factories.
void AddRebalanceFactory(const RCP< const FactoryBase > &factory)
Add rebalancing factory in the end of list of rebalancing factories in RebalanceAcFactory.
std::vector< Teuchos::RCP< const FactoryManagerBase > > FactManager_
Input 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