MueLu Version of the Day
Loading...
Searching...
No Matches
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
18#include "MueLu_LWGraph.hpp"
19
21
22namespace MueLu {
44template <class LocalOrdinal = DefaultLocalOrdinal,
46 class Node = DefaultNode>
47class 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 template <bool deterministic>
77 void BuildAggregates(const ParameterList& params,
78 const LWGraph_kokkos graph,
79 Aggregates& aggregates,
81 LO& numNonAggregatedNodes) const;
82
84
85 std::string description() const { return "Phase 2b (expansion)"; }
86};
87
88} // namespace MueLu
89
90#define MUELU_AGGREGATIONPHASE2BALGORITHM_SHORT
91
92#endif /* MUELU_AGGREGATIONPHASE2BALGORITHM_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
AggregationPhase2bAlgorithm(const RCP< const FactoryBase > &=Teuchos::null)
Constructor.
std::string description() const
Return a simple one-line description of this object.
void BuildAggregatesNonKokkos(const ParameterList &params, const LWGraph &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatHostType &aggStat, LO &numNonAggregatedNodes) const
Local aggregation.
void BuildAggregates(const 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