MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_AggregationPhase2aAlgorithm_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_AGGREGATIONPHASE2AALGORITHM_DECL_HPP_
11#define MUELU_AGGREGATIONPHASE2AALGORITHM_DECL_HPP_
12
13#include "MueLu_ConfigDefs.hpp"
15
17
20#include "MueLu_LWGraph.hpp"
21
22namespace MueLu {
44
45template <class LocalOrdinal = DefaultLocalOrdinal,
47 class Node = DefaultNode>
48class AggregationPhase2aAlgorithm : public MueLu::AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node> {
49#undef MUELU_AGGREGATIONPHASE2AALGORITHM_SHORT
51
52 public:
54
55
57 AggregationPhase2aAlgorithm(const RCP<const FactoryBase>& /* graphFact */ = Teuchos::null) {}
58
61
63
65
66
68
69 void BuildAggregatesNonKokkos(const ParameterList& params, const LWGraph& graph, Aggregates& aggregates, typename AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node>::AggStatHostType& aggStat, LO& numNonAggregatedNodes) const;
70
71 void BuildAggregates(const Teuchos::ParameterList& params,
72 const LWGraph_kokkos& graph,
73 Aggregates& aggregates,
75 LO& numNonAggregatedNodes) const;
76
77 void BuildAggregatesRandom(const Teuchos::ParameterList& params,
78 const LWGraph_kokkos& graph,
79 Aggregates& aggregates,
81 LO& numNonAggregatedNodes) const;
82
83 void BuildAggregatesDeterministic(const Teuchos::ParameterList& params,
84 const LWGraph_kokkos& graph,
85 Aggregates& aggregates,
87 LO& numNonAggregatedNodes) const;
89
90 std::string description() const { return "Phase 2a (secondary)"; }
91};
92
93} // namespace MueLu
94
95#define MUELU_AGGREGATIONPHASE2AALGORITHM_SHORT
96
97#endif /* MUELU_AGGREGATIONPHASE2AALGORITHM_DECL_HPP_ */
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Container class for aggregation information.
Pure virtual base class for all MueLu aggregation algorithms.
Kokkos::View< unsigned *, typename LWGraphHostType::device_type > AggStatHostType
Kokkos::View< unsigned *, typename LWGraphType::device_type > AggStatType
void BuildAggregatesNonKokkos(const ParameterList &params, const LWGraph &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatHostType &aggStat, LO &numNonAggregatedNodes) const
Local aggregation.
std::string description() const
Return a simple one-line description of this object.
void BuildAggregatesDeterministic(const Teuchos::ParameterList &params, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
void BuildAggregates(const Teuchos::ParameterList &params, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
AggregationPhase2aAlgorithm(const RCP< const FactoryBase > &=Teuchos::null)
Constructor.
void BuildAggregatesRandom(const Teuchos::ParameterList &params, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
Lightweight MueLu representation of a compressed row storage graph.
Lightweight MueLu representation of a compressed row storage graph.
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode