MueLu Version of the Day
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
20
21#include "MueLu_Level_fwd.hpp"
22#include "MueLu_SmootherPrototype.hpp"
23#include "MueLu_RefMaxwell.hpp"
24
25namespace MueLu {
26
34template <class Scalar = SmootherPrototype<>::scalar_type,
38class RefMaxwellSmoother : public SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
39#undef MUELU_REFMAXWELLSMOOTHER_SHORT
41
42 public:
44
45
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_;
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::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Class that holds all level-specific information.
Class that encapsulates Operator smoothers.
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
void SetupRefMaxwell(Level &currentLevel)
void Setup(Level &currentLevel)
Set up the smoother.
RCP< Operator > op_
matrix, used in apply if solving residual equation
void SetParameterList(const Teuchos::ParameterList &paramList)
Set parameters from a parameter list and return with default values.
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
void DeclareInput(Level &currentLevel) const
Input.
std::string description() const
Return a simple one-line description of this object.
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the preconditioner.
RCP< SmootherPrototype > Copy() const
virtual ~RefMaxwellSmoother()=default
Destructor.
Base class for smoother prototypes.
Namespace for MueLu classes and methods.