MueLu
Version of the Day
Toggle main menu visibility
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
15
#include "
MueLu_Aggregates_fwd.hpp
"
16
#include "
MueLu_AggregationAlgorithmBase.hpp
"
17
#include "
MueLu_FactoryBase_fwd.hpp
"
18
#include "MueLu_LWGraph.hpp"
19
20
#include "
MueLu_AggregationPhase2bAlgorithm_fwd.hpp
"
21
22
namespace
MueLu
{
43
44
template
<
class
LocalOrdinal
=
DefaultLocalOrdinal
,
45
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
46
class
Node
=
DefaultNode
>
47
class
AggregationPhase2bAlgorithm
:
public
MueLu::AggregationAlgorithmBase
<LocalOrdinal, GlobalOrdinal, Node> {
48
#undef MUELU_AGGREGATIONPHASE2BALGORITHM_SHORT
49
#include "
MueLu_UseShortNamesOrdinal.hpp
"
50
51
public
:
53
54
56
AggregationPhase2bAlgorithm
(
const
RCP<const FactoryBase>&
/* graphFact */
= Teuchos::null) {}
57
59
virtual
~AggregationPhase2bAlgorithm
() {}
60
62
64
65
67
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,
73
typename
AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node>::AggStatType
& aggStat,
74
LO& numNonAggregatedNodes)
const
;
75
76
template
<
bool
deterministic>
77
void
BuildAggregates
(
const
ParameterList& params,
78
const
LWGraph_kokkos
graph,
79
Aggregates
& aggregates,
80
typename
AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node>::AggStatType
aggStat,
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_Aggregates_fwd.hpp
MueLu_AggregationAlgorithmBase.hpp
MueLu_AggregationPhase2bAlgorithm_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::AggregationPhase2bAlgorithm::AggregationPhase2bAlgorithm
AggregationPhase2bAlgorithm(const RCP< const FactoryBase > &=Teuchos::null)
Constructor.
Definition
MueLu_AggregationPhase2bAlgorithm_decl.hpp:56
MueLu::AggregationPhase2bAlgorithm::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_AggregationPhase2bAlgorithm_decl.hpp:85
MueLu::AggregationPhase2bAlgorithm::BuildAggregates
void BuildAggregates(const ParameterList ¶ms, const LWGraph_kokkos graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType aggStat, LO &numNonAggregatedNodes) const
Definition
MueLu_AggregationPhase2bAlgorithm_def.hpp:253
MueLu::AggregationPhase2bAlgorithm::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_AggregationPhase2bAlgorithm_def.hpp:30
MueLu::AggregationPhase2bAlgorithm::~AggregationPhase2bAlgorithm
virtual ~AggregationPhase2bAlgorithm()
Destructor.
Definition
MueLu_AggregationPhase2bAlgorithm_decl.hpp:59
MueLu::AggregationPhase2bAlgorithm::BuildAggregates
void BuildAggregates(const ParameterList ¶ms, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
Definition
MueLu_AggregationPhase2bAlgorithm_def.hpp:114
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_AggregationPhase2bAlgorithm_decl.hpp
Generated by
1.17.0