MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_UzawaSmoother_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_UZAWASMOOTHER_DECL_HPP_
11
#define MUELU_UZAWASMOOTHER_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_UzawaSmoother_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
29
#include "
MueLu_SchurComplementFactory_fwd.hpp
"
30
#include "
MueLu_FactoryManager_fwd.hpp
"
31
32
namespace
MueLu
{
33
39
40
template <class Scalar = SmootherPrototype<>::scalar_type,
41
class
LocalOrdinal
=
typename
SmootherPrototype<Scalar>::local_ordinal_type
,
42
class
GlobalOrdinal
=
typename
SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type
,
43
class
Node
=
typename
SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
44
class
UzawaSmoother
:
public
SmootherPrototype
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
45
typedef
Xpetra::MapExtractor<Scalar, LocalOrdinal, GlobalOrdinal, Node>
MapExtractorClass
;
46
47
#undef MUELU_UZAWASMOOTHER_SHORT
48
#include "
MueLu_UseShortNames.hpp
"
49
50
public
:
52
53
54
RCP<const ParameterList>
GetValidParameterList
()
const
;
55
56
void
DeclareInput
(
Level
¤tLevel)
const
;
57
62
void
SetVelocityPredictionFactoryManager
(RCP<FactoryManager> FactManager);
63
68
void
SetSchurCompFactoryManager
(RCP<FactoryManager> FactManager);
69
74
void
AddFactoryManager
(RCP<const FactoryManagerBase> FactManager,
int
pos);
75
77
79
80
83
void
Setup
(
Level
¤tLevel);
84
90
void
Apply
(MultiVector &X, MultiVector
const
&B,
bool
InitialGuessIsZero =
false
)
const
;
92
93
RCP<SmootherPrototype>
Copy
()
const
;
94
96
97
99
std::string
description
()
const
;
100
102
// using MueLu::Describable::describe; // overloading, not hiding
103
void
print
(Teuchos::FancyOStream &out,
const
VerbLevel
verbLevel =
Default
)
const
;
104
106
size_t
getNodeSmootherComplexity
()
const
;
107
109
110
private
:
112
std::string
type_
=
"Uzawa"
;
113
114
RCP<const FactoryBase>
AFact_
;
115
117
RCP<Matrix>
A_
= Teuchos::null;
//<! internal blocked operator "A" generated by AFact_
118
119
RCP<const MapExtractorClass>
rangeMapExtractor_
;
120
RCP<const MapExtractorClass>
domainMapExtractor_
;
121
123
Teuchos::RCP<Vector>
diagFinv_
;
124
Teuchos::RCP<Matrix>
F_
;
125
Teuchos::RCP<Matrix>
G_
;
126
Teuchos::RCP<Matrix>
D_
;
127
Teuchos::RCP<Matrix>
Z_
;
128
129
Teuchos::RCP<SmootherBase>
velPredictSmoo_
;
130
Teuchos::RCP<SmootherBase>
schurCompSmoo_
;
131
138
std::vector<Teuchos::RCP<const FactoryManagerBase> >
FactManager_
;
139
140
};
// class UzawaSmoother
141
142
}
// namespace MueLu
143
144
#define MUELU_UZAWASMOOTHER_SHORT
145
146
#endif
/* MUELU_UZAWASMOOTHER_DECL_HPP_ */
MueLu_ConfigDefs.hpp
MueLu_FactoryBase_fwd.hpp
MueLu_FactoryManager_fwd.hpp
MueLu_FactoryManagerBase_fwd.hpp
MueLu_SchurComplementFactory_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_UzawaSmoother_fwd.hpp
MueLu::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
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::UzawaSmoother
Block triangle Uzawa smoother for 2x2 block matrices.
Definition
MueLu_UzawaSmoother_decl.hpp:44
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A_
RCP< Matrix > A_
Definition
MueLu_UzawaSmoother_decl.hpp:117
MueLu::UzawaSmoother::Copy
RCP< SmootherPrototype > Copy() const
Definition
MueLu_UzawaSmoother_def.hpp:265
MueLu::UzawaSmoother::Setup
void Setup(Level ¤tLevel)
Setup routine.
Definition
MueLu_UzawaSmoother_def.hpp:93
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::FactManager_
std::vector< Teuchos::RCP< const FactoryManagerBase > > FactManager_
Definition
MueLu_UzawaSmoother_decl.hpp:138
MueLu::UzawaSmoother::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Input.
Definition
MueLu_UzawaSmoother_def.hpp:35
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::D_
Teuchos::RCP< Matrix > D_
Definition
MueLu_UzawaSmoother_decl.hpp:126
MueLu::UzawaSmoother::AddFactoryManager
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager, int pos)
Add a factory manager at a specific position.
Definition
MueLu_UzawaSmoother_def.hpp:46
MueLu::UzawaSmoother::Apply
void Apply(MultiVector &X, MultiVector const &B, bool InitialGuessIsZero=false) const
Apply the Braess Sarazin smoother.
Definition
MueLu_UzawaSmoother_def.hpp:132
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Z_
Teuchos::RCP< Matrix > Z_
Definition
MueLu_UzawaSmoother_decl.hpp:127
MueLu::UzawaSmoother::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_UzawaSmoother_def.hpp:270
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::velPredictSmoo_
Teuchos::RCP< SmootherBase > velPredictSmoo_
Definition
MueLu_UzawaSmoother_decl.hpp:129
MueLu::UzawaSmoother::SetSchurCompFactoryManager
void SetSchurCompFactoryManager(RCP< FactoryManager > FactManager)
Set factory manager for internal SchurComplement handling.
Definition
MueLu_UzawaSmoother_def.hpp:72
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::schurCompSmoo_
Teuchos::RCP< SmootherBase > schurCompSmoo_
Definition
MueLu_UzawaSmoother_decl.hpp:130
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::type_
std::string type_
Definition
MueLu_UzawaSmoother_decl.hpp:112
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::domainMapExtractor_
RCP< const MapExtractorClass > domainMapExtractor_
Definition
MueLu_UzawaSmoother_decl.hpp:120
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::G_
Teuchos::RCP< Matrix > G_
Definition
MueLu_UzawaSmoother_decl.hpp:125
MueLu::UzawaSmoother::print
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
Definition
MueLu_UzawaSmoother_def.hpp:278
MueLu::UzawaSmoother::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_UzawaSmoother_def.hpp:77
MueLu::UzawaSmoother::getNodeSmootherComplexity
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Definition
MueLu_UzawaSmoother_def.hpp:291
MueLu::UzawaSmoother::SetVelocityPredictionFactoryManager
void SetVelocityPredictionFactoryManager(RCP< FactoryManager > FactManager)
Set factory manager for internal velocity prediction.
Definition
MueLu_UzawaSmoother_def.hpp:67
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AFact_
RCP< const FactoryBase > AFact_
Definition
MueLu_UzawaSmoother_decl.hpp:114
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::MapExtractorClass
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
Definition
MueLu_UzawaSmoother_decl.hpp:45
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::F_
Teuchos::RCP< Matrix > F_
Definition
MueLu_UzawaSmoother_decl.hpp:124
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::diagFinv_
Teuchos::RCP< Vector > diagFinv_
Definition
MueLu_UzawaSmoother_decl.hpp:123
MueLu::UzawaSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::rangeMapExtractor_
RCP< const MapExtractorClass > rangeMapExtractor_
Definition
MueLu_UzawaSmoother_decl.hpp:119
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_UzawaSmoother_decl.hpp
Generated by
1.17.0