MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_BlockedJacobiSmoother_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_BLOCKEDJACOBISMOOTHER_DECL_HPP_
11
#define MUELU_BLOCKEDJACOBISMOOTHER_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_BlockedJacobiSmoother_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
74
// ToDo (mayr) Inherit from common base class with BlockedGaussSeidelSmoother
75
template <class Scalar = SmootherPrototype<>::scalar_type,
76
class
LocalOrdinal
=
typename
SmootherPrototype<Scalar>::local_ordinal_type
,
77
class
GlobalOrdinal
=
typename
SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type
,
78
class
Node
=
typename
SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
79
class
BlockedJacobiSmoother
:
public
SmootherPrototype
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
80
typedef
Xpetra::MapExtractor<Scalar, LocalOrdinal, GlobalOrdinal, Node>
MapExtractorClass
;
81
82
#undef MUELU_BLOCKEDJACOBISMOOTHER_SHORT
83
#include "
MueLu_UseShortNames.hpp
"
84
85
public
:
87
88
91
BlockedJacobiSmoother
();
92
94
virtual
~BlockedJacobiSmoother
();
96
98
99
RCP<const ParameterList>
GetValidParameterList
()
const
;
100
101
void
DeclareInput
(
Level
¤tLevel)
const
;
102
104
// void AddFactoryManager(RCP<const FactoryManagerBase> FactManager);
105
107
void
AddFactoryManager
(RCP<const FactoryManagerBase> FactManager,
int
pos);
108
110
112
113
119
void
Setup
(
Level
¤tLevel);
120
128
void
Apply
(MultiVector &X,
const
MultiVector &B,
bool
InitialGuessIsZero =
false
)
const
;
130
131
RCP<SmootherPrototype>
Copy
()
const
;
132
134
135
137
std::string
description
()
const
;
138
143
void
print
(Teuchos::FancyOStream &out,
const
VerbLevel
verbLevel =
Default
)
const
;
144
146
size_t
getNodeSmootherComplexity
()
const
;
147
149
150
private
:
152
std::string
type_
;
153
155
std::vector<Teuchos::RCP<const FactoryManagerBase> >
FactManager_
;
156
158
std::vector<Teuchos::RCP<const SmootherBase> >
Inverse_
;
159
161
std::vector<bool>
bIsBlockedOperator_
;
162
164
RCP<FactoryBase>
AFact_
;
165
167
RCP<Matrix>
A_
;
168
170
RCP<const MapExtractorClass>
rangeMapExtractor_
;
171
173
RCP<const MapExtractorClass>
domainMapExtractor_
;
174
};
// class BlockedJacobiSmoother
175
176
}
// namespace MueLu
177
178
#define MUELU_BLOCKEDJACOBISMOOTHER_SHORT
179
180
#endif
/* MUELU_BLOCKEDJACOBISMOOTHER_DECL_HPP_ */
MueLu_BlockedJacobiSmoother_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::BlockedJacobiSmoother::Apply
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the direct solver.
Definition
MueLu_BlockedJacobiSmoother_def.hpp:132
MueLu::BlockedJacobiSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::domainMapExtractor_
RCP< const MapExtractorClass > domainMapExtractor_
Definition
MueLu_BlockedJacobiSmoother_decl.hpp:173
MueLu::BlockedJacobiSmoother::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Input.
Definition
MueLu_BlockedJacobiSmoother_def.hpp:44
MueLu::BlockedJacobiSmoother::Setup
void Setup(Level ¤tLevel)
Setup routine In the Setup method the Inverse_ vector is filled with the corresponding SmootherBase o...
Definition
MueLu_BlockedJacobiSmoother_def.hpp:95
MueLu::BlockedJacobiSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::type_
std::string type_
Definition
MueLu_BlockedJacobiSmoother_decl.hpp:152
MueLu::BlockedJacobiSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A_
RCP< Matrix > A_
Definition
MueLu_BlockedJacobiSmoother_decl.hpp:167
MueLu::BlockedJacobiSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::MapExtractorClass
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
Definition
MueLu_BlockedJacobiSmoother_decl.hpp:80
MueLu::BlockedJacobiSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Inverse_
std::vector< Teuchos::RCP< const SmootherBase > > Inverse_
Definition
MueLu_BlockedJacobiSmoother_decl.hpp:158
MueLu::BlockedJacobiSmoother::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_BlockedJacobiSmoother_def.hpp:280
MueLu::BlockedJacobiSmoother::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_BlockedJacobiSmoother_def.hpp:76
MueLu::BlockedJacobiSmoother::Copy
RCP< SmootherPrototype > Copy() const
Definition
MueLu_BlockedJacobiSmoother_def.hpp:275
MueLu::BlockedJacobiSmoother::BlockedJacobiSmoother
BlockedJacobiSmoother()
Constructor.
Definition
MueLu_BlockedJacobiSmoother_def.hpp:34
MueLu::BlockedJacobiSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::FactManager_
std::vector< Teuchos::RCP< const FactoryManagerBase > > FactManager_
Definition
MueLu_BlockedJacobiSmoother_decl.hpp:155
MueLu::BlockedJacobiSmoother::~BlockedJacobiSmoother
virtual ~BlockedJacobiSmoother()
Destructor.
Definition
MueLu_BlockedJacobiSmoother_def.hpp:41
MueLu::BlockedJacobiSmoother::AddFactoryManager
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager, int pos)
Add a factory manager.
Definition
MueLu_BlockedJacobiSmoother_def.hpp:55
MueLu::BlockedJacobiSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::rangeMapExtractor_
RCP< const MapExtractorClass > rangeMapExtractor_
Definition
MueLu_BlockedJacobiSmoother_decl.hpp:170
MueLu::BlockedJacobiSmoother::print
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
Definition
MueLu_BlockedJacobiSmoother_def.hpp:288
MueLu::BlockedJacobiSmoother::getNodeSmootherComplexity
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Definition
MueLu_BlockedJacobiSmoother_def.hpp:306
MueLu::BlockedJacobiSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::bIsBlockedOperator_
std::vector< bool > bIsBlockedOperator_
Definition
MueLu_BlockedJacobiSmoother_decl.hpp:161
MueLu::BlockedJacobiSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AFact_
RCP< FactoryBase > AFact_
Definition
MueLu_BlockedJacobiSmoother_decl.hpp:164
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_BlockedJacobiSmoother_decl.hpp
Generated by
1.17.0