MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_PermutingSmoother_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
/*
11
* MueLu_PermutingSmoother_decl.hpp
12
*
13
* Created on: Nov 28, 2012
14
* Author: wiesner
15
*/
16
17
#ifndef MUELU_PERMUTINGSMOOTHER_DECL_HPP
18
#define MUELU_PERMUTINGSMOOTHER_DECL_HPP
19
20
#include <Teuchos_ParameterList.hpp>
21
#include <Xpetra_Matrix_fwd.hpp>
22
#include <Xpetra_Vector_fwd.hpp>
23
#include <Xpetra_VectorFactory_fwd.hpp>
24
#include <Xpetra_MultiVector_fwd.hpp>
25
#include <Xpetra_MultiVectorFactory_fwd.hpp>
26
27
#include "
MueLu_ConfigDefs.hpp
"
28
29
#include "MueLu_SmootherPrototype.hpp"
30
#include "
MueLu_TrilinosSmoother_fwd.hpp
"
31
#include "
MueLu_FactoryBase_fwd.hpp
"
32
#include "
MueLu_PermutationFactory_fwd.hpp
"
33
34
namespace
MueLu
{
35
42
43
template <class Scalar = SmootherPrototype<>::scalar_type,
44
class
LocalOrdinal
=
typename
SmootherPrototype<Scalar>::local_ordinal_type
,
45
class
GlobalOrdinal
=
typename
SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type
,
46
class
Node
=
typename
SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
47
class
PermutingSmoother
:
public
SmootherPrototype
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
48
#undef MUELU_PERMUTINGSMOOTHER_SHORT
49
#include "
MueLu_UseShortNames.hpp
"
50
51
public
:
53
54
62
PermutingSmoother
(std::string
const
& mapName,
const
RCP<const FactoryBase>& mapFact, std::string
const
& type =
""
,
const
Teuchos::ParameterList& paramList = Teuchos::ParameterList(), LO
const
& overlap = 0, RCP<FactoryBase> permFact = Teuchos::null);
63
65
virtual
~PermutingSmoother
();
67
69
70
71
void
DeclareInput
(
Level
& currentLevel)
const
;
72
74
76
77
79
void
Setup
(
Level
& currentLevel);
80
87
void
Apply
(MultiVector& X,
const
MultiVector& B,
bool
InitialGuessIsZero =
false
)
const
;
89
90
RCP<SmootherPrototype>
Copy
()
const
;
91
93
94
96
std::string
description
()
const
;
97
99
// using MueLu::Describable::describe; // overloading, not hiding
100
void
print
(Teuchos::FancyOStream& out,
const
VerbLevel
verbLevel =
Default
)
const
;
101
103
size_t
getNodeSmootherComplexity
()
const
{
return
s_
->getNodeSmootherComplexity(); }
104
106
107
private
:
109
std::string
type_
;
110
112
LO
overlap_
;
113
115
RCP<FactoryBase>
permFact_
;
116
118
RCP<Matrix>
permQT_
;
119
121
RCP<Matrix>
permP_
;
122
124
Teuchos::RCP<Matrix>
diagScalingOp_
;
125
126
//
127
// Underlying Smoother
128
//
129
131
RCP<SmootherPrototype>
s_
;
// TrilinosSmoother object
132
133
};
// class PermutingSmoother
134
135
}
// namespace MueLu
136
137
#define MUELU_PERMUTINGSMOOTHER_SHORT
138
#endif
/* MUELU_PERMUTINGSMOOTHER_DECL_HPP */
MueLu_ConfigDefs.hpp
MueLu_FactoryBase_fwd.hpp
MueLu_PermutationFactory_fwd.hpp
MueLu_TrilinosSmoother_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::PermutingSmoother::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_PermutingSmoother_def.hpp:124
MueLu::PermutingSmoother::~PermutingSmoother
virtual ~PermutingSmoother()
Destructor.
Definition
MueLu_PermutingSmoother_def.hpp:67
MueLu::PermutingSmoother::print
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
Definition
MueLu_PermutingSmoother_def.hpp:131
MueLu::PermutingSmoother::permFact_
RCP< FactoryBase > permFact_
Permutation Factory.
Definition
MueLu_PermutingSmoother_decl.hpp:115
MueLu::PermutingSmoother::permQT_
RCP< Matrix > permQT_
permQT matrix object
Definition
MueLu_PermutingSmoother_decl.hpp:118
MueLu::PermutingSmoother::diagScalingOp_
Teuchos::RCP< Matrix > diagScalingOp_
scaling matrix object
Definition
MueLu_PermutingSmoother_decl.hpp:124
MueLu::PermutingSmoother::Copy
RCP< SmootherPrototype > Copy() const
Definition
MueLu_PermutingSmoother_def.hpp:119
MueLu::PermutingSmoother::getNodeSmootherComplexity
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Definition
MueLu_PermutingSmoother_decl.hpp:103
MueLu::PermutingSmoother::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_PermutingSmoother_def.hpp:70
MueLu::PermutingSmoother::Setup
void Setup(Level ¤tLevel)
Set up the direct solver.
Definition
MueLu_PermutingSmoother_def.hpp:79
MueLu::PermutingSmoother::overlap_
LO overlap_
overlap when using the smoother in additive Schwarz mode
Definition
MueLu_PermutingSmoother_decl.hpp:112
MueLu::PermutingSmoother::type_
std::string type_
ifpack1/2-specific key phrase that denote smoother type
Definition
MueLu_PermutingSmoother_decl.hpp:109
MueLu::PermutingSmoother::PermutingSmoother
PermutingSmoother(std::string const &mapName, const RCP< const FactoryBase > &mapFact, std::string const &type="", const Teuchos::ParameterList ¶mList=Teuchos::ParameterList(), LO const &overlap=0, RCP< FactoryBase > permFact=Teuchos::null)
Constructor.
Definition
MueLu_PermutingSmoother_def.hpp:38
MueLu::PermutingSmoother::s_
RCP< SmootherPrototype > s_
Smoother.
Definition
MueLu_PermutingSmoother_decl.hpp:131
MueLu::PermutingSmoother::permP_
RCP< Matrix > permP_
permP matrix object
Definition
MueLu_PermutingSmoother_decl.hpp:121
MueLu::PermutingSmoother::Apply
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the direct solver. Solves the linear system AX=B using the constructed solver.
Definition
MueLu_PermutingSmoother_def.hpp:96
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_PermutingSmoother_decl.hpp
Generated by
1.17.0