MueLu Version of the Day
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
16namespace MueLu {
17
18class Level;
19
29template <class Scalar = SmootherPrototype<>::scalar_type,
33class AdvSmootherPrototype : public SmootherPrototypex<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
34#undef MUELU_ADVSMOOTHERPROTOTYPE_HPP
36
37 public:
39
41 : type_("undefined") {}
42
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::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
void SetType(std::string &type)
Set the smoother type. This method must be called by constructors of derived classes.
std::string GetType() const
Get the smoother type.
virtual void CopyParameters(const AdvSmootherPrototype &smootherPrototype)=0
AdvSmootherPrototype()
@nameConstructors/Destructors.
Namespace for MueLu classes and methods.