MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_BlockedGaussSeidelSmoother_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_BLOCKEDGAUSSSEIDELSMOOTHER_DECL_HPP_
11
#define MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_DECL_HPP_
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
15
#include <Teuchos_ParameterList.hpp>
16
17
#include <Xpetra_Matrix_fwd.hpp>
18
#include <Xpetra_BlockedCrsMatrix_fwd.hpp>
19
#include <Xpetra_ReorderedBlockedCrsMatrix_fwd.hpp>
20
#include <Xpetra_MultiVectorFactory_fwd.hpp>
21
#include <Xpetra_MapExtractor_fwd.hpp>
22
23
#include "
MueLu_BlockedGaussSeidelSmoother_fwd.hpp
"
24
25
#include "MueLu_SmootherPrototype.hpp"
26
#include "
MueLu_FactoryBase_fwd.hpp
"
27
#include "
MueLu_FactoryManagerBase_fwd.hpp
"
28
#include "
MueLu_SmootherBase_fwd.hpp
"
29
30
namespace
MueLu
{
31
72
73
template <class Scalar = SmootherPrototype<>::scalar_type,
74
class
LocalOrdinal
=
typename
SmootherPrototype<Scalar>::local_ordinal_type
,
75
class
GlobalOrdinal
=
typename
SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type
,
76
class
Node
=
typename
SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
77
class
BlockedGaussSeidelSmoother
:
public
SmootherPrototype
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
78
typedef
Xpetra::MapExtractor<Scalar, LocalOrdinal, GlobalOrdinal, Node>
MapExtractorClass
;
79
80
#undef MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_SHORT
81
#include "
MueLu_UseShortNames.hpp
"
82
83
public
:
85
86
89
BlockedGaussSeidelSmoother
();
90
92
virtual
~BlockedGaussSeidelSmoother
();
94
96
97
RCP<const ParameterList>
GetValidParameterList
()
const
;
98
99
void
DeclareInput
(
Level
¤tLevel)
const
;
100
102
// void AddFactoryManager(RCP<const FactoryManagerBase> FactManager);
103
105
void
AddFactoryManager
(RCP<const FactoryManagerBase> FactManager,
int
pos);
106
108
110
111
117
void
Setup
(
Level
¤tLevel);
118
125
void
Apply
(MultiVector &X,
const
MultiVector &B,
bool
InitialGuessIsZero =
false
)
const
;
127
128
RCP<SmootherPrototype>
Copy
()
const
;
129
131
132
134
std::string
description
()
const
;
135
141
void
print
(Teuchos::FancyOStream &out,
const
VerbLevel
verbLevel =
Default
)
const
;
142
144
size_t
getNodeSmootherComplexity
()
const
;
145
147
148
private
:
150
std::string
type_
;
151
153
std::vector<Teuchos::RCP<const FactoryManagerBase> >
FactManager_
;
154
156
std::vector<Teuchos::RCP<const SmootherBase> >
Inverse_
;
157
159
std::vector<bool>
bIsBlockedOperator_
;
160
162
RCP<FactoryBase>
AFact_
;
163
165
RCP<Matrix>
A_
;
166
168
RCP<const MapExtractorClass>
rangeMapExtractor_
;
169
171
RCP<const MapExtractorClass>
domainMapExtractor_
;
172
};
// class Amesos2Smoother
173
174
}
// namespace MueLu
175
176
#define MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_SHORT
177
178
#endif
/* MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_DECL_HPP_ */
MueLu_BlockedGaussSeidelSmoother_fwd.hpp
MueLu_ConfigDefs.hpp
MueLu_FactoryBase_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::BlockedGaussSeidelSmoother::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:76
MueLu::BlockedGaussSeidelSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::FactManager_
std::vector< Teuchos::RCP< const FactoryManagerBase > > FactManager_
Definition
MueLu_BlockedGaussSeidelSmoother_decl.hpp:153
MueLu::BlockedGaussSeidelSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Inverse_
std::vector< Teuchos::RCP< const SmootherBase > > Inverse_
Definition
MueLu_BlockedGaussSeidelSmoother_decl.hpp:156
MueLu::BlockedGaussSeidelSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::domainMapExtractor_
RCP< const MapExtractorClass > domainMapExtractor_
Definition
MueLu_BlockedGaussSeidelSmoother_decl.hpp:171
MueLu::BlockedGaussSeidelSmoother::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:282
MueLu::BlockedGaussSeidelSmoother::~BlockedGaussSeidelSmoother
virtual ~BlockedGaussSeidelSmoother()
Destructor.
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:41
MueLu::BlockedGaussSeidelSmoother::getNodeSmootherComplexity
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:307
MueLu::BlockedGaussSeidelSmoother::AddFactoryManager
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager, int pos)
Add a factory manager.
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:55
MueLu::BlockedGaussSeidelSmoother::Copy
RCP< SmootherPrototype > Copy() const
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:277
MueLu::BlockedGaussSeidelSmoother::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Input.
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:44
MueLu::BlockedGaussSeidelSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::rangeMapExtractor_
RCP< const MapExtractorClass > rangeMapExtractor_
Definition
MueLu_BlockedGaussSeidelSmoother_decl.hpp:168
MueLu::BlockedGaussSeidelSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::bIsBlockedOperator_
std::vector< bool > bIsBlockedOperator_
Definition
MueLu_BlockedGaussSeidelSmoother_decl.hpp:159
MueLu::BlockedGaussSeidelSmoother::BlockedGaussSeidelSmoother
BlockedGaussSeidelSmoother()
Constructor.
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:34
MueLu::BlockedGaussSeidelSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::MapExtractorClass
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
Definition
MueLu_BlockedGaussSeidelSmoother_decl.hpp:78
MueLu::BlockedGaussSeidelSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::type_
std::string type_
Definition
MueLu_BlockedGaussSeidelSmoother_decl.hpp:150
MueLu::BlockedGaussSeidelSmoother::Apply
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the direct solver. Solves the linear system AX=B using the constructed solver.
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:132
MueLu::BlockedGaussSeidelSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AFact_
RCP< FactoryBase > AFact_
Definition
MueLu_BlockedGaussSeidelSmoother_decl.hpp:162
MueLu::BlockedGaussSeidelSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A_
RCP< Matrix > A_
Definition
MueLu_BlockedGaussSeidelSmoother_decl.hpp:165
MueLu::BlockedGaussSeidelSmoother::print
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level verbLevel to an FancyOStream object out.
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:290
MueLu::BlockedGaussSeidelSmoother::Setup
void Setup(Level ¤tLevel)
Setup routine In the Setup method the Inverse_ vector is filled with the corresponding SmootherBase o...
Definition
MueLu_BlockedGaussSeidelSmoother_def.hpp:95
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_BlockedGaussSeidelSmoother_decl.hpp
Generated by
1.17.0