MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_SimpleSmoother_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_SIMPLESMOOTHER_DECL_HPP_
11
#define MUELU_SIMPLESMOOTHER_DECL_HPP_
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
15
#include <Teuchos_ParameterList.hpp>
16
17
// Xpetra
18
#include <Xpetra_MapExtractor_fwd.hpp>
19
#include <Xpetra_MultiVectorFactory_fwd.hpp>
20
#include <Xpetra_Matrix_fwd.hpp>
21
22
// MueLu
23
#include "
MueLu_SimpleSmoother_fwd.hpp
"
24
#include "MueLu_SmootherPrototype.hpp"
25
#include "
MueLu_FactoryBase_fwd.hpp
"
26
#include "
MueLu_FactoryManagerBase_fwd.hpp
"
27
#include "
MueLu_SmootherBase_fwd.hpp
"
28
#include "
MueLu_Utilities_fwd.hpp
"
29
30
#include "
MueLu_SchurComplementFactory_fwd.hpp
"
31
#include "
MueLu_FactoryManager_fwd.hpp
"
32
33
namespace
MueLu
{
34
40
41
template <class Scalar = SmootherPrototype<>::scalar_type,
42
class
LocalOrdinal
=
typename
SmootherPrototype<Scalar>::local_ordinal_type
,
43
class
GlobalOrdinal
=
typename
SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type
,
44
class
Node
=
typename
SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
45
class
SimpleSmoother
:
public
SmootherPrototype
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
46
typedef
Xpetra::MapExtractor<Scalar, LocalOrdinal, GlobalOrdinal, Node>
MapExtractorClass
;
47
48
#undef MUELU_SIMPLESMOOTHER_SHORT
49
#include "
MueLu_UseShortNames.hpp
"
50
51
public
:
53
54
56
SimpleSmoother
();
57
59
virtual
~SimpleSmoother
();
60
62
64
65
66
RCP<const ParameterList>
GetValidParameterList
()
const
;
67
68
void
DeclareInput
(
Level
¤tLevel)
const
;
69
72
void
SetVelocityPredictionFactoryManager
(RCP<FactoryManager> FactManager);
73
76
void
SetSchurCompFactoryManager
(RCP<FactoryManager> FactManager);
77
79
void
AddFactoryManager
(RCP<const FactoryManagerBase> FactManager,
int
pos);
80
82
84
85
95
void
Setup
(
Level
¤tLevel);
96
102
void
Apply
(MultiVector &X, MultiVector
const
&B,
bool
InitialGuessIsZero =
false
)
const
;
104
105
RCP<SmootherPrototype>
Copy
()
const
;
106
108
109
111
std::string
description
()
const
;
112
114
// using MueLu::Describable::describe; // overloading, not hiding
115
void
print
(Teuchos::FancyOStream &out,
const
VerbLevel
verbLevel =
Default
)
const
;
116
118
size_t
getNodeSmootherComplexity
()
const
;
119
121
122
private
:
124
std::string
type_
;
125
127
RCP<const FactoryBase>
AFact_
;
128
130
RCP<Matrix>
A_
;
131
133
RCP<const MapExtractorClass>
rangeMapExtractor_
;
134
136
RCP<const MapExtractorClass>
domainMapExtractor_
;
137
140
142
Teuchos::RCP<Vector>
diagFinv_
;
143
145
Teuchos::RCP<Matrix>
F_
;
146
148
Teuchos::RCP<Matrix>
G_
;
149
151
Teuchos::RCP<Matrix>
D_
;
152
154
Teuchos::RCP<Matrix>
Z_
;
155
157
159
Teuchos::RCP<SmootherBase>
velPredictSmoo_
;
160
162
Teuchos::RCP<SmootherBase>
schurCompSmoo_
;
163
169
std::vector<Teuchos::RCP<const FactoryManagerBase> >
FactManager_
;
170
};
171
172
}
// namespace MueLu
173
174
#define MUELU_SIMPLESMOOTHER_SHORT
175
176
#endif
/* MUELU_SIMPLESMOOTHER_DECL_HPP_ */
MueLu_ConfigDefs.hpp
MueLu_FactoryBase_fwd.hpp
MueLu_FactoryManager_fwd.hpp
MueLu_FactoryManagerBase_fwd.hpp
MueLu_SchurComplementFactory_fwd.hpp
MueLu_SimpleSmoother_fwd.hpp
MueLu_SmootherBase_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_UseShortNames.hpp
MueLu_Utilities_fwd.hpp
MueLu::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A_
RCP< Matrix > A_
Definition
MueLu_SimpleSmoother_decl.hpp:130
MueLu::SimpleSmoother::SetVelocityPredictionFactoryManager
void SetVelocityPredictionFactoryManager(RCP< FactoryManager > FactManager)
Definition
MueLu_SimpleSmoother_def.hpp:81
MueLu::SimpleSmoother::Setup
void Setup(Level ¤tLevel)
Setup routine.
Definition
MueLu_SimpleSmoother_def.hpp:107
MueLu::SimpleSmoother::print
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
Definition
MueLu_SimpleSmoother_def.hpp:366
MueLu::SimpleSmoother::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_SimpleSmoother_def.hpp:358
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AFact_
RCP< const FactoryBase > AFact_
Definition
MueLu_SimpleSmoother_decl.hpp:127
MueLu::SimpleSmoother::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_SimpleSmoother_def.hpp:91
MueLu::SimpleSmoother::getNodeSmootherComplexity
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Definition
MueLu_SimpleSmoother_def.hpp:379
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Z_
Teuchos::RCP< Matrix > Z_
Definition
MueLu_SimpleSmoother_decl.hpp:154
MueLu::SimpleSmoother::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Input.
Definition
MueLu_SimpleSmoother_def.hpp:47
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::FactManager_
std::vector< Teuchos::RCP< const FactoryManagerBase > > FactManager_
Definition
MueLu_SimpleSmoother_decl.hpp:169
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::D_
Teuchos::RCP< Matrix > D_
Definition
MueLu_SimpleSmoother_decl.hpp:151
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::type_
std::string type_
Definition
MueLu_SimpleSmoother_decl.hpp:124
MueLu::SimpleSmoother::~SimpleSmoother
virtual ~SimpleSmoother()
Destructor.
Definition
MueLu_SimpleSmoother_def.hpp:44
MueLu::SimpleSmoother::Copy
RCP< SmootherPrototype > Copy() const
Definition
MueLu_SimpleSmoother_def.hpp:353
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::MapExtractorClass
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
Definition
MueLu_SimpleSmoother_decl.hpp:46
MueLu::SimpleSmoother::AddFactoryManager
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager, int pos)
Add a factory manager at a specific position.
Definition
MueLu_SimpleSmoother_def.hpp:60
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::schurCompSmoo_
Teuchos::RCP< SmootherBase > schurCompSmoo_
Definition
MueLu_SimpleSmoother_decl.hpp:162
MueLu::SimpleSmoother::Apply
void Apply(MultiVector &X, MultiVector const &B, bool InitialGuessIsZero=false) const
Apply the Braess Sarazin smoother.
Definition
MueLu_SimpleSmoother_def.hpp:180
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::G_
Teuchos::RCP< Matrix > G_
Definition
MueLu_SimpleSmoother_decl.hpp:148
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::velPredictSmoo_
Teuchos::RCP< SmootherBase > velPredictSmoo_
Definition
MueLu_SimpleSmoother_decl.hpp:159
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::rangeMapExtractor_
RCP< const MapExtractorClass > rangeMapExtractor_
Definition
MueLu_SimpleSmoother_decl.hpp:133
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::F_
Teuchos::RCP< Matrix > F_
Definition
MueLu_SimpleSmoother_decl.hpp:145
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::diagFinv_
Teuchos::RCP< Vector > diagFinv_
Definition
MueLu_SimpleSmoother_decl.hpp:142
MueLu::SimpleSmoother::SetSchurCompFactoryManager
void SetSchurCompFactoryManager(RCP< FactoryManager > FactManager)
Definition
MueLu_SimpleSmoother_def.hpp:86
MueLu::SimpleSmoother::SimpleSmoother
SimpleSmoother()
Constructor.
Definition
MueLu_SimpleSmoother_def.hpp:39
MueLu::SimpleSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::domainMapExtractor_
RCP< const MapExtractorClass > domainMapExtractor_
Definition
MueLu_SimpleSmoother_decl.hpp:136
MueLu::SmootherPrototype::node_type
Node node_type
Definition
MueLu_SmootherPrototype_decl.hpp:44
MueLu::SmootherPrototype::SmootherPrototype
SmootherPrototype()
@nameConstructors/Destructors.
Definition
MueLu_SmootherPrototype_def.hpp:18
MueLu::SmootherPrototype::global_ordinal_type
GlobalOrdinal global_ordinal_type
Definition
MueLu_SmootherPrototype_decl.hpp:43
MueLu::SmootherPrototype::local_ordinal_type
LocalOrdinal local_ordinal_type
Definition
MueLu_SmootherPrototype_decl.hpp:42
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
MueLu::VerbLevel
int VerbLevel
Definition
MueLu_VerbosityLevel.hpp:76
MueLu::Default
@ Default
Definition
MueLu_VerbosityLevel.hpp:70
src
Smoothers
BlockedSmoothers
MueLu_SimpleSmoother_decl.hpp
Generated by
1.17.0