MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_SmootherPrototype_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_SMOOTHERPROTOTYPE_DECL_HPP
11
#define MUELU_SMOOTHERPROTOTYPE_DECL_HPP
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
#include "
MueLu_SmootherPrototype_fwd.hpp
"
15
#include "
MueLu_SmootherBase.hpp
"
16
#include "
MueLu_Factory.hpp
"
17
18
namespace
MueLu
{
19
20
class
Level
;
21
33
34
template <class Scalar = SmootherBase<>::scalar_type,
35
class
LocalOrdinal
=
typename
SmootherBase<Scalar>::local_ordinal_type
,
36
class
GlobalOrdinal
=
typename
SmootherBase<Scalar, LocalOrdinal>::global_ordinal_type
,
37
class
Node
=
typename
SmootherBase<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
38
class
SmootherPrototype
:
public
SmootherBase
<Scalar, LocalOrdinal, GlobalOrdinal, Node>,
39
public
Factory
{
40
public
:
41
typedef
Scalar
scalar_type
;
42
typedef
LocalOrdinal
local_ordinal_type
;
43
typedef
GlobalOrdinal
global_ordinal_type
;
44
typedef
Node
node_type
;
45
46
private
:
47
#undef MUELU_SMOOTHERPROTOTYPE_SHORT
48
#include "
MueLu_UseShortNames.hpp
"
49
50
public
:
52
53
54
SmootherPrototype
();
55
56
virtual
~SmootherPrototype
();
57
59
61
62
63
virtual
void
DeclareInput
(
Level
¤tLevel)
const
= 0;
64
66
68
69
70
virtual
void
Setup
(
Level
&) = 0;
71
72
virtual
RCP<SmootherPrototype>
Copy
()
const
= 0;
73
75
77
78
80
bool
IsSetup
()
const
;
81
83
// Developpers: this method must be called by your Setup() method.
84
void
IsSetup
(
bool
const
&ToF);
85
87
89
90
virtual
void
CallBuild
(
Level
&
/* requestedLevel */
)
const
{
91
TEUCHOS_TEST_FOR_EXCEPT(
true
);
92
}
93
95
virtual
void
CallDeclareInput
(
Level
&requestedLevel)
const
{
96
DeclareInput
(requestedLevel);
97
}
98
100
101
private
:
102
bool
isSetup_
;
103
104
};
// class SmootherPrototype
105
106
}
// namespace MueLu
107
108
// TODO: private copy constructor
109
// TODO: update comments
110
111
#define MUELU_SMOOTHERPROTOTYPE_SHORT
112
#endif
// MUELU_SMOOTHERPROTOTYPE_DECL_HPP
MueLu_ConfigDefs.hpp
MueLu_Factory.hpp
MueLu_SmootherBase.hpp
MueLu_SmootherPrototype_fwd.hpp
LocalOrdinal
MueLu::DefaultLocalOrdinal LocalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:13
Scalar
MueLu::DefaultScalar Scalar
Definition
MueLu_UseDefaultTypes.hpp:12
GlobalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:14
Node
MueLu::DefaultNode Node
Definition
MueLu_UseDefaultTypes.hpp:15
MueLu_UseShortNames.hpp
MueLu::Factory::Factory
Factory()
Constructor.
Definition
MueLu_Factory.cpp:14
MueLu::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
MueLu::SmootherBase::node_type
Node node_type
Definition
MueLu_SmootherBase.hpp:37
MueLu::SmootherBase::local_ordinal_type
LocalOrdinal local_ordinal_type
Definition
MueLu_SmootherBase.hpp:35
MueLu::SmootherBase::global_ordinal_type
GlobalOrdinal global_ordinal_type
Definition
MueLu_SmootherBase.hpp:36
MueLu::SmootherPrototype::DeclareInput
virtual void DeclareInput(Level ¤tLevel) const =0
Input.
MueLu::SmootherPrototype< Scalar, LocalOrdinal, GlobalOrdinal, Node >::node_type
Node node_type
Definition
MueLu_SmootherPrototype_decl.hpp:44
MueLu::SmootherPrototype::~SmootherPrototype
virtual ~SmootherPrototype()
Definition
MueLu_SmootherPrototype_def.hpp:22
MueLu::SmootherPrototype::SmootherPrototype
SmootherPrototype()
@nameConstructors/Destructors.
Definition
MueLu_SmootherPrototype_def.hpp:18
MueLu::SmootherPrototype::CallDeclareInput
virtual void CallDeclareInput(Level &requestedLevel) const
Definition
MueLu_SmootherPrototype_decl.hpp:95
MueLu::SmootherPrototype::Copy
virtual RCP< SmootherPrototype > Copy() const =0
MueLu::SmootherPrototype::IsSetup
bool IsSetup() const
Get the state of a smoother prototype.
Definition
MueLu_SmootherPrototype_def.hpp:25
MueLu::SmootherPrototype::Setup
virtual void Setup(Level &)=0
MueLu::SmootherPrototype::CallBuild
virtual void CallBuild(Level &) const
Definition
MueLu_SmootherPrototype_decl.hpp:90
MueLu::SmootherPrototype::SmootherBase
MueLu::SmootherBase< Scalar, LocalOrdinal, GlobalOrdinal, Node > SmootherBase
MueLu::SmootherPrototype::IsSetup
void IsSetup(bool const &ToF)
Set the state of a smoother prototype.
Definition
MueLu_SmootherPrototype_def.hpp:28
MueLu::SmootherPrototype< Scalar, LocalOrdinal, GlobalOrdinal, Node >::isSetup_
bool isSetup_
Definition
MueLu_SmootherPrototype_decl.hpp:102
MueLu::SmootherPrototype< Scalar, LocalOrdinal, GlobalOrdinal, Node >::global_ordinal_type
GlobalOrdinal global_ordinal_type
Definition
MueLu_SmootherPrototype_decl.hpp:43
MueLu::SmootherPrototype< Scalar, LocalOrdinal, GlobalOrdinal, Node >::scalar_type
Scalar scalar_type
Definition
MueLu_SmootherPrototype_decl.hpp:41
MueLu::SmootherPrototype< Scalar, LocalOrdinal, GlobalOrdinal, Node >::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
src
Smoothers
MueLu_SmootherPrototype_decl.hpp
Generated by
1.17.0