MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_RefMaxwellSmoother_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_REFMAXWELLSMOOTHER_DECL_HPP
11
#define MUELU_REFMAXWELLSMOOTHER_DECL_HPP
12
13
#include <Teuchos_ParameterList.hpp>
14
15
#include <Xpetra_Matrix_fwd.hpp>
16
17
#include "
MueLu_ConfigDefs.hpp
"
18
19
#include "
MueLu_RefMaxwellSmoother_fwd.hpp
"
20
21
#include "
MueLu_Level_fwd.hpp
"
22
#include "MueLu_SmootherPrototype.hpp"
23
#include "MueLu_RefMaxwell.hpp"
24
25
namespace
MueLu
{
26
33
34
template <class Scalar = SmootherPrototype<>::scalar_type,
35
class
LocalOrdinal
=
typename
SmootherPrototype<Scalar>::local_ordinal_type
,
36
class
GlobalOrdinal
=
typename
SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type
,
37
class
Node
=
typename
SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
38
class
RefMaxwellSmoother
:
public
SmootherPrototype
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
39
#undef MUELU_REFMAXWELLSMOOTHER_SHORT
40
#include "
MueLu_UseShortNames.hpp
"
41
42
public
:
44
45
51
52
RefMaxwellSmoother
(
const
std::string type,
const
Teuchos::ParameterList& paramList);
53
55
virtual
~RefMaxwellSmoother
() =
default
;
56
58
59
void
SetParameterList
(
const
Teuchos::ParameterList& paramList);
60
62
63
64
void
DeclareInput
(
Level
& currentLevel)
const
;
65
67
69
70
76
void
Setup
(
Level
& currentLevel);
77
86
void
Apply
(MultiVector& X,
const
MultiVector& B,
bool
InitialGuessIsZero =
false
)
const
;
87
89
91
92
93
RCP<SmootherPrototype>
Copy
()
const
;
94
96
98
99
101
std::string
description
()
const
;
102
104
// using MueLu::Describable::describe; // overloading, not hiding
105
// void describe(Teuchos::FancyOStream &out, const VerbLevel verbLevel = Default) const
106
void
print
(Teuchos::FancyOStream& out,
const
VerbLevel
verbLevel =
Default
)
const
;
107
109
111
size_t
getNodeSmootherComplexity
()
const
;
112
113
private
:
114
void
SetupRefMaxwell
(
Level
& currentLevel);
115
116
private
:
117
std::string
type_
;
118
std::string
cachedDescription_
;
119
121
RCP<Operator>
op_
;
122
123
};
// class RefMaxwellSmoother
124
125
}
// namespace MueLu
126
127
#define MUELU_REFMAXWELLSMOOTHER_SHORT
128
#endif
// MUELU_REFMAXWELLSMOOTHER_DECL_HPP
MueLu_ConfigDefs.hpp
MueLu_Level_fwd.hpp
MueLu_RefMaxwellSmoother_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::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
MueLu::RefMaxwellSmoother::print
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
Definition
MueLu_RefMaxwellSmoother_def.hpp:146
MueLu::RefMaxwellSmoother::SetupRefMaxwell
void SetupRefMaxwell(Level ¤tLevel)
Definition
MueLu_RefMaxwellSmoother_def.hpp:75
MueLu::RefMaxwellSmoother::Setup
void Setup(Level ¤tLevel)
Set up the smoother.
Definition
MueLu_RefMaxwellSmoother_def.hpp:66
MueLu::RefMaxwellSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::cachedDescription_
std::string cachedDescription_
Definition
MueLu_RefMaxwellSmoother_decl.hpp:118
MueLu::RefMaxwellSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::op_
RCP< Operator > op_
Definition
MueLu_RefMaxwellSmoother_decl.hpp:121
MueLu::RefMaxwellSmoother::SetParameterList
void SetParameterList(const Teuchos::ParameterList ¶mList)
Set parameters from a parameter list and return with default values.
Definition
MueLu_RefMaxwellSmoother_def.hpp:37
MueLu::RefMaxwellSmoother::getNodeSmootherComplexity
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Definition
MueLu_RefMaxwellSmoother_def.hpp:171
MueLu::RefMaxwellSmoother::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_RefMaxwellSmoother_def.hpp:42
MueLu::RefMaxwellSmoother::RefMaxwellSmoother
RefMaxwellSmoother(const std::string type, const Teuchos::ParameterList ¶mList)
Constructor.
Definition
MueLu_RefMaxwellSmoother_def.hpp:28
MueLu::RefMaxwellSmoother::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_RefMaxwellSmoother_def.hpp:132
MueLu::RefMaxwellSmoother::Apply
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the preconditioner.
Definition
MueLu_RefMaxwellSmoother_def.hpp:115
MueLu::RefMaxwellSmoother::Copy
RCP< SmootherPrototype > Copy() const
Definition
MueLu_RefMaxwellSmoother_def.hpp:125
MueLu::RefMaxwellSmoother::~RefMaxwellSmoother
virtual ~RefMaxwellSmoother()=default
Destructor.
MueLu::RefMaxwellSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::type_
std::string type_
Definition
MueLu_RefMaxwellSmoother_decl.hpp:117
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_RefMaxwellSmoother_decl.hpp
Generated by
1.17.0