MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_PreserveDirichletAggregationAlgorithm_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_PRESERVEDIRICHLETAGGREGATIONALGORITHM_DECL_HPP_
11
#define MUELU_PRESERVEDIRICHLETAGGREGATIONALGORITHM_DECL_HPP_
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
#include "
MueLu_AggregationAlgorithmBase.hpp
"
15
#include "
MueLu_PreserveDirichletAggregationAlgorithm_fwd.hpp
"
16
17
#include "
MueLu_FactoryBase_fwd.hpp
"
18
#include "
MueLu_Aggregates_fwd.hpp
"
19
#include "MueLu_LWGraph.hpp"
20
21
namespace
MueLu
{
45
46
template
<
class
LocalOrdinal
=
DefaultLocalOrdinal
,
47
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
48
class
Node
=
DefaultNode
>
49
class
PreserveDirichletAggregationAlgorithm
:
public
MueLu::AggregationAlgorithmBase
<LocalOrdinal, GlobalOrdinal, Node> {
50
#undef MUELU_PRESERVEDIRICHLETAGGREGATIONALGORITHM_SHORT
51
#include "
MueLu_UseShortNamesOrdinal.hpp
"
52
53
public
:
55
56
58
PreserveDirichletAggregationAlgorithm
(
const
RCP<const FactoryBase>&
/* graphFact */
= Teuchos::null) {}
59
61
virtual
~PreserveDirichletAggregationAlgorithm
() {}
62
64
66
67
69
70
void
BuildAggregatesNonKokkos
(
const
Teuchos::ParameterList& params,
const
LWGraph
& graph,
Aggregates
& aggregates,
typename
AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node>::AggStatHostType
& aggStat, LO& numNonAggregatedNodes)
const
;
71
72
void
BuildAggregates
(
const
Teuchos::ParameterList& params,
73
const
LWGraph_kokkos
& graph,
74
Aggregates
& aggregates,
75
typename
AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node>::AggStatType
& aggStat,
76
LO& numNonAggregatedNodes)
const
;
78
79
std::string
description
()
const
{
return
"Phase - (Dirichlet)"
; }
80
81
};
// class PreserveDirichletAggregationAlgorithm
82
83
}
// namespace MueLu
84
85
#define MUELU_PRESERVEDIRICHLETAGGREGATIONALGORITHM_SHORT
86
87
#endif
/* MUELU_PRESERVEDIRICHLETAGGREGATIONALGORITHM_DECL_HPP_ */
MueLu_Aggregates_fwd.hpp
MueLu_AggregationAlgorithmBase.hpp
MueLu_ConfigDefs.hpp
MueLu_FactoryBase_fwd.hpp
MueLu_PreserveDirichletAggregationAlgorithm_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::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::PreserveDirichletAggregationAlgorithm::~PreserveDirichletAggregationAlgorithm
virtual ~PreserveDirichletAggregationAlgorithm()
Destructor.
Definition
MueLu_PreserveDirichletAggregationAlgorithm_decl.hpp:61
MueLu::PreserveDirichletAggregationAlgorithm::PreserveDirichletAggregationAlgorithm
PreserveDirichletAggregationAlgorithm(const RCP< const FactoryBase > &=Teuchos::null)
Constructor.
Definition
MueLu_PreserveDirichletAggregationAlgorithm_decl.hpp:58
MueLu::PreserveDirichletAggregationAlgorithm::BuildAggregatesNonKokkos
void BuildAggregatesNonKokkos(const Teuchos::ParameterList ¶ms, const LWGraph &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatHostType &aggStat, LO &numNonAggregatedNodes) const
Local aggregation.
Definition
MueLu_PreserveDirichletAggregationAlgorithm_def.hpp:28
MueLu::PreserveDirichletAggregationAlgorithm::BuildAggregates
void BuildAggregates(const Teuchos::ParameterList ¶ms, const LWGraph_kokkos &graph, Aggregates &aggregates, typename AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node >::AggStatType &aggStat, LO &numNonAggregatedNodes) const
Definition
MueLu_PreserveDirichletAggregationAlgorithm_def.hpp:60
MueLu::PreserveDirichletAggregationAlgorithm::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_PreserveDirichletAggregationAlgorithm_decl.hpp:79
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_PreserveDirichletAggregationAlgorithm_decl.hpp
Generated by
1.17.0