MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_AggregationPhase3Algorithm_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_AGGREGATIONPHASE3ALGORITHM_DECL_HPP_
11#define MUELU_AGGREGATIONPHASE3ALGORITHM_DECL_HPP_
12
13#include "MueLu_ConfigDefs.hpp"
16
19#include "MueLu_LWGraph.hpp"
20
21namespace MueLu {
39template <class LocalOrdinal = DefaultLocalOrdinal,
41 class Node = DefaultNode>
42class AggregationPhase3Algorithm : public MueLu::AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node> {
43#undef MUELU_AGGREGATIONPHASE3ALGORITHM_SHORT
45
46 public:
48
49
51 AggregationPhase3Algorithm(const RCP<const FactoryBase>& /* graphFact */ = Teuchos::null) {}
52
55
57
59
60
63 void BuildAggregatesNonKokkos(const ParameterList& params, const LWGraph& graph, Aggregates& aggregates, typename AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node>::AggStatHostType& aggStat, LO& numNonAggregatedNodes) const;
64
65 void BuildAggregates(const ParameterList& params,
66 const LWGraph_kokkos& graph,
67 Aggregates& aggregates,
69 LO& numNonAggregatedNodes) const;
70
71 void BuildAggregatesRandom(const ParameterList& params,
72 const LWGraph_kokkos& graph,
73 Aggregates& aggregates,
75 LO& numNonAggregatedNodes) const;
77
78 std::string description() const { return "Phase 3 (cleanup)"; }
79};
80
81} // namespace MueLu
82
83#define MUELU_AGGREGATIONPHASE3ALGORITHM_SHORT
84
85#endif /* MUELU_AGGREGATIONPHASE3ALGORITHM_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
Handle leftover nodes. Try to avoid singleton nodes.
void BuildAggregates(const ParameterList &params, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
AggregationPhase3Algorithm(const RCP< const FactoryBase > &=Teuchos::null)
Constructor.
std::string description() const
Return a simple one-line description of this object.
void BuildAggregatesRandom(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.
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