MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_AdvSmootherPrototype.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_ADVSMOOTHERPROTOTYPE_HPP
11
#define MUELU_ADVSMOOTHERPROTOTYPE_HPP
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
#include "MueLu_SmootherPrototype.hpp"
15
16
namespace
MueLu
{
17
18
class
Level
;
19
28
29
template <class Scalar = SmootherPrototype<>::scalar_type,
30
class
LocalOrdinal
=
typename
SmootherPrototype<Scalar>::local_ordinal_type
,
31
class
GlobalOrdinal
=
typename
SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type
,
32
class
Node
=
typename
SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
33
class
AdvSmootherPrototype
:
public
SmootherPrototypex<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
34
#undef MUELU_ADVSMOOTHERPROTOTYPE_HPP
35
#include "
MueLu_UseShortNames.hpp
"
36
37
public
:
39
40
AdvSmootherPrototype
()
41
:
type_
(
"undefined"
) {}
42
43
virtual
~AdvSmootherPrototype
() {}
45
47
48
49
virtual
void
CopyParameters
(
const
AdvSmootherPrototype
& smootherPrototype) = 0;
50
52
54
55
57
std::string
GetType
()
const
{
return
type_
; }
58
62
// TODO: remove, type_ should be const
63
void
SetType
(std::string& type) {
type_
= type; }
64
66
67
private
:
68
std::string
type_
;
69
70
};
// class AdvSmootherPrototype
71
72
}
// namespace MueLu
73
74
#define MUELU_ADVSMOOTHERPROTOTYPE_SHORT
75
76
#endif
// ifndef MUELU_ADVSMOOTHERPROTOTYPE_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::AdvSmootherPrototype::SetType
void SetType(std::string &type)
Set the smoother type. This method must be called by constructors of derived classes.
Definition
MueLu_AdvSmootherPrototype.hpp:63
MueLu::AdvSmootherPrototype::type_
std::string type_
Definition
MueLu_AdvSmootherPrototype.hpp:68
MueLu::AdvSmootherPrototype::GetType
std::string GetType() const
Get the smoother type.
Definition
MueLu_AdvSmootherPrototype.hpp:57
MueLu::AdvSmootherPrototype::CopyParameters
virtual void CopyParameters(const AdvSmootherPrototype &smootherPrototype)=0
MueLu::AdvSmootherPrototype::~AdvSmootherPrototype
virtual ~AdvSmootherPrototype()
Definition
MueLu_AdvSmootherPrototype.hpp:43
MueLu::AdvSmootherPrototype::AdvSmootherPrototype
AdvSmootherPrototype()
@nameConstructors/Destructors.
Definition
MueLu_AdvSmootherPrototype.hpp:40
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::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
src
Smoothers
MueLu_AdvSmootherPrototype.hpp
Generated by
1.17.0