MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_BraessSarazinSmoother_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_BRAESSSARAZINSMOOTHER_DECL_HPP_
11
#define MUELU_BRAESSSARAZINSMOOTHER_DECL_HPP_
12
#include "
MueLu_ConfigDefs.hpp
"
13
14
#include <Teuchos_ParameterList.hpp>
15
16
// Xpetra
17
#include <Xpetra_MapExtractor_fwd.hpp>
18
#include <Xpetra_MultiVectorFactory_fwd.hpp>
19
#include <Xpetra_Matrix_fwd.hpp>
20
21
// MueLu
22
#include "
MueLu_BraessSarazinSmoother_fwd.hpp
"
23
#include "MueLu_SmootherPrototype.hpp"
24
#include "
MueLu_FactoryBase_fwd.hpp
"
25
#include "
MueLu_FactoryManagerBase_fwd.hpp
"
26
#include "
MueLu_SmootherBase_fwd.hpp
"
27
#include "
MueLu_Utilities_fwd.hpp
"
28
29
#include "
MueLu_FactoryManager_fwd.hpp
"
30
31
namespace
MueLu
{
32
38
39
template <class Scalar = SmootherPrototype<>::scalar_type,
40
class
LocalOrdinal
=
typename
SmootherPrototype<Scalar>::local_ordinal_type
,
41
class
GlobalOrdinal
=
typename
SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type
,
42
class
Node
=
typename
SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
43
class
BraessSarazinSmoother
:
public
SmootherPrototype
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
44
#undef MUELU_BRAESSSARAZINSMOOTHER_SHORT
45
#include "
MueLu_UseShortNames.hpp
"
46
47
public
:
49
50
51
RCP<const ParameterList>
GetValidParameterList
()
const
;
52
53
void
DeclareInput
(
Level
¤tLevel)
const
;
54
56
void
AddFactoryManager
(RCP<const FactoryManagerBase> FactManager,
int
pos = 0);
57
59
61
62
71
void
Setup
(
Level
¤tLevel);
72
78
void
Apply
(MultiVector &X,
const
MultiVector &B,
bool
InitialGuessIsZero =
false
)
const
;
80
81
RCP<SmootherPrototype>
Copy
()
const
;
82
84
85
87
std::string
description
()
const
;
88
94
void
print
(Teuchos::FancyOStream &out,
const
VerbLevel
verbLevel =
Default
)
const
;
95
97
size_t
getNodeSmootherComplexity
()
const
;
98
100
101
private
:
103
std::string
type_
=
"Braess Sarazin"
;
104
105
RCP<const FactoryBase>
AFact_
;
106
RCP<const FactoryManagerBase>
FactManager_
;
107
109
RCP<Matrix>
A_
= Teuchos::null;
// < ! internal blocked operator "A" generated by AFact_
110
111
RCP<const MapExtractor>
rangeMapExtractor_
;
112
RCP<const MapExtractor>
domainMapExtractor_
;
113
115
RCP<Matrix>
A00_
;
116
RCP<Matrix>
A01_
;
117
RCP<Matrix>
A10_
;
118
RCP<Matrix>
A11_
;
119
RCP<Matrix>
S_
;
120
RCP<Vector>
D_
;
121
122
Teuchos::RCP<SmootherBase>
smoo_
;
123
124
};
// class Amesos2Smoother
125
126
}
// namespace MueLu
127
128
#define MUELU_BRAESSSARAZINSMOOTHER_SHORT
129
#endif
/* MUELU_BRAESSSARAZINSMOOTHER_DECL_HPP_ */
MueLu_BraessSarazinSmoother_fwd.hpp
MueLu_ConfigDefs.hpp
MueLu_FactoryBase_fwd.hpp
MueLu_FactoryManager_fwd.hpp
MueLu_FactoryManagerBase_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::BraessSarazinSmoother
BraessSarazin smoother for 2x2 block matrices.
Definition
MueLu_BraessSarazinSmoother_decl.hpp:43
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A01_
RCP< Matrix > A01_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:116
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A10_
RCP< Matrix > A10_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:117
MueLu::BraessSarazinSmoother::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Input.
Definition
MueLu_BraessSarazinSmoother_def.hpp:42
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::domainMapExtractor_
RCP< const MapExtractor > domainMapExtractor_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:112
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A_
RCP< Matrix > A_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:109
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AFact_
RCP< const FactoryBase > AFact_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:105
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::type_
std::string type_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:103
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A11_
RCP< Matrix > A11_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:118
MueLu::BraessSarazinSmoother::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_BraessSarazinSmoother_def.hpp:307
MueLu::BraessSarazinSmoother::Apply
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the Braess Sarazin smoother.
Definition
MueLu_BraessSarazinSmoother_def.hpp:135
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::D_
RCP< Vector > D_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:120
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::rangeMapExtractor_
RCP< const MapExtractor > rangeMapExtractor_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:111
MueLu::BraessSarazinSmoother::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_BraessSarazinSmoother_def.hpp:60
MueLu::BraessSarazinSmoother::Copy
RCP< SmootherPrototype > Copy() const
Definition
MueLu_BraessSarazinSmoother_def.hpp:301
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A00_
RCP< Matrix > A00_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:115
MueLu::BraessSarazinSmoother::getNodeSmootherComplexity
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Definition
MueLu_BraessSarazinSmoother_def.hpp:328
MueLu::BraessSarazinSmoother::Setup
void Setup(Level ¤tLevel)
Setup routine.
Definition
MueLu_BraessSarazinSmoother_def.hpp:80
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::smoo_
Teuchos::RCP< SmootherBase > smoo_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:122
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::FactManager_
RCP< const FactoryManagerBase > FactManager_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:106
MueLu::BraessSarazinSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::S_
RCP< Matrix > S_
Definition
MueLu_BraessSarazinSmoother_decl.hpp:119
MueLu::BraessSarazinSmoother::print
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
Definition
MueLu_BraessSarazinSmoother_def.hpp:315
MueLu::BraessSarazinSmoother::AddFactoryManager
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager, int pos=0)
Add a factory manager for BraessSarazin internal SchurComplement handling.
Definition
MueLu_BraessSarazinSmoother_def.hpp:36
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
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_BraessSarazinSmoother_decl.hpp
Generated by
1.17.0