MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_ProjectorSmoother_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_PROJECTORSMOOTHER_DECL_HPP
11
#define MUELU_PROJECTORSMOOTHER_DECL_HPP
12
13
#include <Xpetra_Matrix_fwd.hpp>
14
#include <Xpetra_MultiVector_fwd.hpp>
15
16
#include "
MueLu_ConfigDefs.hpp
"
17
18
#include "MueLu_SmootherPrototype.hpp"
19
#include "
MueLu_Utilities_fwd.hpp
"
20
21
namespace
MueLu
{
22
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
ProjectorSmoother
:
public
SmootherPrototype
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
44
#undef MUELU_PROJECTORSMOOTHER_SHORT
45
#include "
MueLu_UseShortNames.hpp
"
46
47
public
:
49
50
52
ProjectorSmoother
(RCP<SmootherPrototype> coarseSolver);
53
55
virtual
~ProjectorSmoother
();
57
59
60
61
void
DeclareInput
(
Level
¤tLevel)
const
;
62
64
66
67
69
void
Setup
(
Level
¤tLevel);
70
77
void
Apply
(MultiVector &X,
const
MultiVector &B,
bool
InitialGuessIsZero =
false
)
const
;
79
80
RCP<SmootherPrototype>
Copy
()
const
;
81
83
84
86
std::string
description
()
const
;
87
89
// using MueLu::Describable::describe; // overloading, not hiding
90
void
print
(Teuchos::FancyOStream &out,
const
VerbLevel
verbLevel =
Default
)
const
;
91
93
size_t
getNodeSmootherComplexity
()
const
{
return
coarseSolver_
->getNodeSmootherComplexity(); }
94
96
97
private
:
98
RCP<MultiVector>
Borth_
;
99
RCP<SmootherPrototype>
coarseSolver_
;
100
101
};
// class ProjectorSmoother
102
103
}
// namespace MueLu
104
105
#define MUELU_PROJECTORSMOOTHER_SHORT
106
#endif
// MUELU_PROJECTORSMOOTHER_DECL_HPP
MueLu_ConfigDefs.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::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
MueLu::ProjectorSmoother::coarseSolver_
RCP< SmootherPrototype > coarseSolver_
Definition
MueLu_ProjectorSmoother_decl.hpp:99
MueLu::ProjectorSmoother::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_ProjectorSmoother_def.hpp:101
MueLu::ProjectorSmoother::Copy
RCP< SmootherPrototype > Copy() const
Definition
MueLu_ProjectorSmoother_def.hpp:122
MueLu::ProjectorSmoother::print
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
Definition
MueLu_ProjectorSmoother_def.hpp:134
MueLu::ProjectorSmoother::~ProjectorSmoother
virtual ~ProjectorSmoother()
Destructor.
Definition
MueLu_ProjectorSmoother_def.hpp:30
MueLu::ProjectorSmoother::Setup
void Setup(Level ¤tLevel)
Set up the direct solver.
Definition
MueLu_ProjectorSmoother_def.hpp:41
MueLu::ProjectorSmoother::getNodeSmootherComplexity
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Definition
MueLu_ProjectorSmoother_decl.hpp:93
MueLu::ProjectorSmoother::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_ProjectorSmoother_def.hpp:127
MueLu::ProjectorSmoother::ProjectorSmoother
ProjectorSmoother(RCP< SmootherPrototype > coarseSolver)
Constructor.
Definition
MueLu_ProjectorSmoother_def.hpp:26
MueLu::ProjectorSmoother::Borth_
RCP< MultiVector > Borth_
Definition
MueLu_ProjectorSmoother_decl.hpp:98
MueLu::ProjectorSmoother::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_ProjectorSmoother_def.hpp:33
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
MueLu_ProjectorSmoother_decl.hpp
Generated by
1.17.0