MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_IndefBlockedDiagonalSmoother_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
/*
11
* MueLu_IndefBlockedDiagonalSmoother_decl.hpp
12
*
13
* Created on: 13 May 2014
14
* Author: wiesner
15
*/
16
17
#ifndef MUELU_INDEFBLOCKEDDIAGONALSMOOTHER_DECL_HPP_
18
#define MUELU_INDEFBLOCKEDDIAGONALSMOOTHER_DECL_HPP_
19
20
#include "
MueLu_ConfigDefs.hpp
"
21
22
#include <Teuchos_ParameterList.hpp>
23
24
// Xpetra
25
#include <Xpetra_MapExtractor_fwd.hpp>
26
#include <Xpetra_MultiVectorFactory_fwd.hpp>
27
#include <Xpetra_Matrix_fwd.hpp>
28
29
// MueLu
30
#include "
MueLu_IndefBlockedDiagonalSmoother_fwd.hpp
"
31
#include "MueLu_SmootherPrototype.hpp"
32
#include "
MueLu_FactoryBase_fwd.hpp
"
33
#include "
MueLu_FactoryManagerBase_fwd.hpp
"
34
#include "
MueLu_SmootherBase_fwd.hpp
"
35
36
#include "
MueLu_SchurComplementFactory_fwd.hpp
"
37
#include "
MueLu_FactoryManager_fwd.hpp
"
38
39
namespace
MueLu
{
40
50
51
template <class Scalar = SmootherPrototype<>::scalar_type,
52
class
LocalOrdinal
=
typename
SmootherPrototype<Scalar>::local_ordinal_type
,
53
class
GlobalOrdinal
=
typename
SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type
,
54
class
Node
=
typename
SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
55
class
IndefBlockedDiagonalSmoother
:
public
SmootherPrototype
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
56
typedef
Xpetra::MapExtractor<Scalar, LocalOrdinal, GlobalOrdinal, Node>
MapExtractorClass
;
57
58
#undef MUELU_INDEFBLOCKEDDIAGONALSMOOTHER_SHORT
59
#include "
MueLu_UseShortNames.hpp
"
60
61
public
:
63
64
67
IndefBlockedDiagonalSmoother
();
68
70
virtual
~IndefBlockedDiagonalSmoother
();
72
74
75
76
RCP<const ParameterList>
GetValidParameterList
()
const
;
77
78
void
DeclareInput
(
Level
¤tLevel)
const
;
79
81
void
AddFactoryManager
(RCP<const FactoryManagerBase> FactManager,
int
pos = 0);
82
84
86
87
90
void
Setup
(
Level
¤tLevel);
91
97
void
Apply
(MultiVector &X,
const
MultiVector &B,
bool
InitialGuessIsZero =
false
)
const
;
99
100
RCP<SmootherPrototype>
Copy
()
const
;
101
103
104
106
std::string
description
()
const
;
107
109
// using MueLu::Describable::describe; // overloading, not hiding
110
void
print
(Teuchos::FancyOStream &out,
const
VerbLevel
verbLevel =
Default
)
const
;
111
113
size_t
getNodeSmootherComplexity
()
const
;
114
116
117
private
:
119
std::string
type_
;
120
121
RCP<const FactoryBase>
AFact_
;
122
124
RCP<Matrix>
A_
;
// < ! internal blocked operator "A" generated by AFact_
125
RCP<Matrix>
F_
;
126
RCP<Matrix>
Z_
;
127
128
RCP<const MapExtractorClass>
rangeMapExtractor_
;
129
RCP<const MapExtractorClass>
domainMapExtractor_
;
130
132
Teuchos::RCP<SmootherBase>
velPredictSmoo_
;
133
Teuchos::RCP<SmootherBase>
schurCompSmoo_
;
134
136
141
std::vector<Teuchos::RCP<const FactoryManagerBase> >
FactManager_
;
142
};
143
144
}
// namespace MueLu
145
146
#define MUELU_INDEFBLOCKEDDIAGONALSMOOTHER_SHORT
147
148
#endif
/* MUELU_INDEFBLOCKEDDIAGONALSMOOTHER_DECL_HPP_ */
MueLu_ConfigDefs.hpp
MueLu_FactoryBase_fwd.hpp
MueLu_FactoryManager_fwd.hpp
MueLu_FactoryManagerBase_fwd.hpp
MueLu_IndefBlockedDiagonalSmoother_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::IndefBlockedDiagonalSmoother::IndefBlockedDiagonalSmoother
IndefBlockedDiagonalSmoother()
Constructor.
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:45
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::MapExtractorClass
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:56
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Z_
RCP< Matrix > Z_
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:126
MueLu::IndefBlockedDiagonalSmoother::~IndefBlockedDiagonalSmoother
virtual ~IndefBlockedDiagonalSmoother()
Destructor.
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:51
MueLu::IndefBlockedDiagonalSmoother::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:323
MueLu::IndefBlockedDiagonalSmoother::getNodeSmootherComplexity
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:343
MueLu::IndefBlockedDiagonalSmoother::AddFactoryManager
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager, int pos=0)
Add a factory manager for BraessSarazin internal SchurComplement handling.
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:67
MueLu::IndefBlockedDiagonalSmoother::Setup
void Setup(Level ¤tLevel)
Setup routine.
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:104
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::type_
std::string type_
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:119
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::domainMapExtractor_
RCP< const MapExtractorClass > domainMapExtractor_
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:129
MueLu::IndefBlockedDiagonalSmoother::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:88
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::rangeMapExtractor_
RCP< const MapExtractorClass > rangeMapExtractor_
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:128
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::schurCompSmoo_
Teuchos::RCP< SmootherBase > schurCompSmoo_
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:133
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::velPredictSmoo_
Teuchos::RCP< SmootherBase > velPredictSmoo_
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:132
MueLu::IndefBlockedDiagonalSmoother::print
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:331
MueLu::IndefBlockedDiagonalSmoother::Copy
RCP< SmootherPrototype > Copy() const
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:318
MueLu::IndefBlockedDiagonalSmoother::Apply
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the Braess Sarazin smoother.
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:171
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AFact_
RCP< const FactoryBase > AFact_
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:121
MueLu::IndefBlockedDiagonalSmoother::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Input.
Definition
MueLu_IndefBlockedDiagonalSmoother_def.hpp:54
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A_
RCP< Matrix > A_
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:124
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::FactManager_
std::vector< Teuchos::RCP< const FactoryManagerBase > > FactManager_
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:141
MueLu::IndefBlockedDiagonalSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::F_
RCP< Matrix > F_
Definition
MueLu_IndefBlockedDiagonalSmoother_decl.hpp:125
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_IndefBlockedDiagonalSmoother_decl.hpp
Generated by
1.17.0