MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_AggregationPhase2bAlgorithm_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_AGGREGATIONPHASE2BALGORITHM_DECL_HPP_
11 #define MUELU_AGGREGATIONPHASE2BALGORITHM_DECL_HPP_
12 
13 #include "MueLu_ConfigDefs.hpp"
14 
15 #include "MueLu_Aggregates_fwd.hpp"
18 #include "MueLu_LWGraph.hpp"
19 
21 
22 namespace MueLu {
44 template <class LocalOrdinal = DefaultLocalOrdinal,
46  class Node = DefaultNode>
47 class AggregationPhase2bAlgorithm : public MueLu::AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node> {
48 #undef MUELU_AGGREGATIONPHASE2BALGORITHM_SHORT
50 
51  public:
53 
54 
56  AggregationPhase2bAlgorithm(const RCP<const FactoryBase>& /* graphFact */ = Teuchos::null) {}
57 
60 
62 
64 
65 
68  void BuildAggregatesNonKokkos(const ParameterList& params, const LWGraph& graph, Aggregates& aggregates, typename AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node>::AggStatHostType& aggStat, LO& numNonAggregatedNodes) const;
69 
70  void BuildAggregates(const ParameterList& params,
71  const LWGraph_kokkos& graph,
72  Aggregates& aggregates,
74  LO& numNonAggregatedNodes) const;
75 
76  void BuildAggregatesRandom(const ParameterList& params,
77  const LWGraph_kokkos& graph,
78  Aggregates& aggregates,
80  LO& numNonAggregatedNodes) const;
81 
83  const LWGraph_kokkos& graph,
84  Aggregates& aggregates,
86  LO& numNonAggregatedNodes) const;
88 
89  std::string description() const { return "Phase 2b (expansion)"; }
90 };
91 
92 } // namespace MueLu
93 
94 #define MUELU_AGGREGATIONPHASE2BALGORITHM_SHORT
95 
96 #endif /* MUELU_AGGREGATIONPHASE2BALGORITHM_DECL_HPP_ */
Kokkos::View< unsigned *, typename LWGraphHostType::device_type > AggStatHostType
MueLu::DefaultLocalOrdinal LocalOrdinal
Lightweight MueLu representation of a compressed row storage graph.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Container class for aggregation information.
Pure virtual base class for all MueLu aggregation algorithms.
LocalOrdinal LO
MueLu::DefaultNode Node
AggregationPhase2bAlgorithm(const RCP< const FactoryBase > &=Teuchos::null)
Constructor.
void BuildAggregatesDeterministic(const ParameterList &params, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
void BuildAggregatesNonKokkos(const ParameterList &params, const LWGraph &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatHostType &aggStat, LO &numNonAggregatedNodes) const
Local aggregation.
MueLu::DefaultGlobalOrdinal GlobalOrdinal
void BuildAggregates(const ParameterList &params, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
void BuildAggregatesRandom(const ParameterList &params, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
std::string description() const
Return a simple one-line description of this object.
Add leftovers to existing aggregatesIdeaIn phase 2b non-aggregated nodes are added to existing aggreg...
Lightweight MueLu representation of a compressed row storage graph.
Kokkos::View< unsigned *, typename LWGraphType::device_type > AggStatType