MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_AggregateQualityEstimateFactory_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_AGGREGATEQUALITYESTIMATEFACTORY_DECL_HPP
11
#define MUELU_AGGREGATEQUALITYESTIMATEFACTORY_DECL_HPP
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
#include "
MueLu_TwoLevelFactoryBase.hpp
"
15
#include "
MueLu_AggregateQualityEstimateFactory_fwd.hpp
"
16
17
#include <Xpetra_Matrix_fwd.hpp>
18
#include <Xpetra_MultiVector_fwd.hpp>
19
#include <Xpetra_Map_fwd.hpp>
20
#include <Xpetra_MultiVectorFactory_fwd.hpp>
21
#include <Xpetra_Vector_fwd.hpp>
22
#include <Xpetra_VectorFactory_fwd.hpp>
23
24
#include "
MueLu_Aggregates_fwd.hpp
"
25
#include "
MueLu_Level_fwd.hpp
"
26
27
namespace
MueLu
{
28
43
44
template
<
class
Scalar
=
DefaultScalar
,
45
class
LocalOrdinal
=
DefaultLocalOrdinal
,
46
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
47
class
Node
=
DefaultNode
>
48
class
AggregateQualityEstimateFactory
:
public
TwoLevelFactoryBase
{
49
#undef MUELU_AGGREGATEQUALITYESTIMATEFACTORY_SHORT
50
#include "
MueLu_UseShortNames.hpp
"
51
52
public
:
54
55
56
typedef
typename
Teuchos::ScalarTraits<Scalar>::magnitudeType
magnitudeType
;
57
59
AggregateQualityEstimateFactory
();
60
62
virtual
~AggregateQualityEstimateFactory
();
63
65
66
RCP<const ParameterList>
GetValidParameterList
()
const
;
67
69
70
76
void
DeclareInput
(
Level
& fineLevel,
Level
& coarseLevel)
const
;
77
79
81
82
84
void
Build
(
Level
& fineLevel,
Level
& coarseLevel)
const
;
85
87
89
90
92
static
void
ConvertAggregatesData
(RCP<const Aggregates> aggs, ArrayRCP<LO>& aggSortedVertices, ArrayRCP<LO>& aggsToIndices, ArrayRCP<LO>& aggSizes);
93
95
96
private
:
98
99
100
void
ComputeAggregateQualities
(RCP<const Matrix> A, RCP<const Aggregates> aggs, RCP<Xpetra::MultiVector<magnitudeType, LO, GO, Node>> agg_qualities)
const
;
101
102
void
ComputeAggregateSizes
(RCP<const Matrix> A, RCP<const Aggregates> aggs, RCP<LocalOrdinalVector> agg_sizes)
const
;
103
105
107
108
109
void
OutputAggQualities
(
const
Level
& level, RCP<
const
Xpetra::MultiVector<magnitudeType, LO, GO, Node>> agg_qualities)
const
;
110
111
void
OutputAggSizes
(
const
Level
& level, RCP<const LocalOrdinalVector> agg_sizes)
const
;
112
114
115
};
// class AggregateQualityEsimateFactory();
116
117
}
// namespace MueLu
118
119
#define MUELU_AGGREGATEQUALITYESTIMATEFACTORY_SHORT
120
#endif
// MUELU_DEMOFACTORY_DECL_HPP
MueLu_AggregateQualityEstimateFactory_fwd.hpp
MueLu_Aggregates_fwd.hpp
MueLu_ConfigDefs.hpp
MueLu_Level_fwd.hpp
MueLu_TwoLevelFactoryBase.hpp
LocalOrdinal
MueLu::DefaultLocalOrdinal LocalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:13
Scalar
MueLu::DefaultScalar Scalar
Definition
MueLu_UseDefaultTypes.hpp:12
GlobalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:14
Node
MueLu::DefaultNode Node
Definition
MueLu_UseDefaultTypes.hpp:15
MueLu_UseShortNames.hpp
MueLu::AggregateQualityEstimateFactory::OutputAggQualities
void OutputAggQualities(const Level &level, RCP< const Xpetra::MultiVector< magnitudeType, LO, GO, Node > > agg_qualities) const
Definition
MueLu_AggregateQualityEstimateFactory_def.hpp:348
MueLu::AggregateQualityEstimateFactory::OutputAggSizes
void OutputAggSizes(const Level &level, RCP< const LocalOrdinalVector > agg_sizes) const
Definition
MueLu_AggregateQualityEstimateFactory_def.hpp:430
MueLu::AggregateQualityEstimateFactory::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Definition
MueLu_AggregateQualityEstimateFactory_def.hpp:44
MueLu::AggregateQualityEstimateFactory::ComputeAggregateQualities
void ComputeAggregateQualities(RCP< const Matrix > A, RCP< const Aggregates > aggs, RCP< Xpetra::MultiVector< magnitudeType, LO, GO, Node > > agg_qualities) const
Definition
MueLu_AggregateQualityEstimateFactory_def.hpp:134
MueLu::AggregateQualityEstimateFactory::DeclareInput
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Specifies the data that this class needs, and the factories that generate that data.
Definition
MueLu_AggregateQualityEstimateFactory_def.hpp:37
MueLu::AggregateQualityEstimateFactory::ConvertAggregatesData
static void ConvertAggregatesData(RCP< const Aggregates > aggs, ArrayRCP< LO > &aggSortedVertices, ArrayRCP< LO > &aggsToIndices, ArrayRCP< LO > &aggSizes)
Build aggregate quality esimates with this factory.
Definition
MueLu_AggregateQualityEstimateFactory_def.hpp:96
MueLu::AggregateQualityEstimateFactory< Scalar, LocalOrdinal, GlobalOrdinal, Node >::magnitudeType
Teuchos::ScalarTraits< Scalar >::magnitudeType magnitudeType
Definition
MueLu_AggregateQualityEstimateFactory_decl.hpp:56
MueLu::AggregateQualityEstimateFactory::~AggregateQualityEstimateFactory
virtual ~AggregateQualityEstimateFactory()
Destructor.
Definition
MueLu_AggregateQualityEstimateFactory_def.hpp:34
MueLu::AggregateQualityEstimateFactory::AggregateQualityEstimateFactory
AggregateQualityEstimateFactory()
Constructor.
Definition
MueLu_AggregateQualityEstimateFactory_def.hpp:31
MueLu::AggregateQualityEstimateFactory::Build
void Build(Level &fineLevel, Level &coarseLevel) const
Build aggregate quality esimates with this factory.
Definition
MueLu_AggregateQualityEstimateFactory_def.hpp:67
MueLu::AggregateQualityEstimateFactory::ComputeAggregateSizes
void ComputeAggregateSizes(RCP< const Matrix > A, RCP< const Aggregates > aggs, RCP< LocalOrdinalVector > agg_sizes) const
Definition
MueLu_AggregateQualityEstimateFactory_def.hpp:419
MueLu::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
MueLu::TwoLevelFactoryBase::TwoLevelFactoryBase
TwoLevelFactoryBase()
Constructor.
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
MueLu::DefaultScalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
Definition
MueLu_Details_DefaultTypes.hpp:20
src
Utils
MueLu_AggregateQualityEstimateFactory_decl.hpp
Generated by
1.17.0