MueLu
Version of the Day
Toggle main menu visibility
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
"
14
#include "
MueLu_AggregationAlgorithmBase.hpp
"
15
#include "
MueLu_AggregationPhase3Algorithm_fwd.hpp
"
16
17
#include "
MueLu_FactoryBase_fwd.hpp
"
18
#include "
MueLu_Aggregates_fwd.hpp
"
19
#include "MueLu_LWGraph.hpp"
20
21
namespace
MueLu
{
38
39
template
<
class
LocalOrdinal
=
DefaultLocalOrdinal
,
40
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
41
class
Node
=
DefaultNode
>
42
class
AggregationPhase3Algorithm
:
public
MueLu::AggregationAlgorithmBase
<LocalOrdinal, GlobalOrdinal, Node> {
43
#undef MUELU_AGGREGATIONPHASE3ALGORITHM_SHORT
44
#include "
MueLu_UseShortNamesOrdinal.hpp
"
45
46
public
:
48
49
51
AggregationPhase3Algorithm
(
const
RCP<const FactoryBase>&
/* graphFact */
= Teuchos::null) {}
52
54
virtual
~AggregationPhase3Algorithm
() {}
55
57
59
60
62
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,
68
typename
AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node>::AggStatType
& aggStat,
69
LO& numNonAggregatedNodes)
const
;
70
71
void
BuildAggregatesRandom
(
const
ParameterList& params,
72
const
LWGraph_kokkos
& graph,
73
Aggregates
& aggregates,
74
typename
AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node>::AggStatType
& aggStat,
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_Aggregates_fwd.hpp
MueLu_AggregationAlgorithmBase.hpp
MueLu_AggregationPhase3Algorithm_fwd.hpp
MueLu_ConfigDefs.hpp
MueLu_FactoryBase_fwd.hpp
LocalOrdinal
MueLu::DefaultLocalOrdinal LocalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:13
GlobalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:14
Node
MueLu::DefaultNode Node
Definition
MueLu_UseDefaultTypes.hpp:15
MueLu_UseShortNamesOrdinal.hpp
MueLu::Aggregates
Container class for aggregation information.
Definition
MueLu_Aggregates_decl.hpp:67
MueLu::AggregationAlgorithmBase
Pure virtual base class for all MueLu aggregation algorithms.
Definition
MueLu_AggregationAlgorithmBase.hpp:32
MueLu::AggregationAlgorithmBase::AggStatHostType
Kokkos::View< unsigned *, typename LWGraphHostType::device_type > AggStatHostType
Definition
MueLu_AggregationAlgorithmBase.hpp:37
MueLu::AggregationAlgorithmBase::AggStatType
Kokkos::View< unsigned *, typename LWGraphType::device_type > AggStatType
Definition
MueLu_AggregationAlgorithmBase.hpp:40
MueLu::AggregationPhase3Algorithm::BuildAggregates
void BuildAggregates(const ParameterList ¶ms, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
Definition
MueLu_AggregationPhase3Algorithm_def.hpp:172
MueLu::AggregationPhase3Algorithm::~AggregationPhase3Algorithm
virtual ~AggregationPhase3Algorithm()
Destructor.
Definition
MueLu_AggregationPhase3Algorithm_decl.hpp:54
MueLu::AggregationPhase3Algorithm::AggregationPhase3Algorithm
AggregationPhase3Algorithm(const RCP< const FactoryBase > &=Teuchos::null)
Constructor.
Definition
MueLu_AggregationPhase3Algorithm_decl.hpp:51
MueLu::AggregationPhase3Algorithm::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_AggregationPhase3Algorithm_decl.hpp:78
MueLu::AggregationPhase3Algorithm::BuildAggregatesRandom
void BuildAggregatesRandom(const ParameterList ¶ms, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
Definition
MueLu_AggregationPhase3Algorithm_def.hpp:191
MueLu::AggregationPhase3Algorithm::BuildAggregatesNonKokkos
void BuildAggregatesNonKokkos(const ParameterList ¶ms, const LWGraph &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatHostType &aggStat, LO &numNonAggregatedNodes) const
Local aggregation.
Definition
MueLu_AggregationPhase3Algorithm_def.hpp:30
MueLu::LWGraph_kokkos
Lightweight MueLu representation of a compressed row storage graph.
Definition
MueLu_LWGraph_kokkos_decl.hpp:30
MueLu::LWGraph
Lightweight MueLu representation of a compressed row storage graph.
Definition
MueLu_LWGraph_decl.hpp:33
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
MueLu::DefaultNode
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Definition
MueLu_Details_DefaultTypes.hpp:32
MueLu::DefaultGlobalOrdinal
int DefaultGlobalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:29
MueLu::DefaultLocalOrdinal
int DefaultLocalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:22
src
Graph
UncoupledAggregation
MueLu_AggregationPhase3Algorithm_decl.hpp
Generated by
1.17.0