MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_ThresholdAFilterFactory_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_THRESHOLDAFILTERFACTORY_DECL_HPP
11
#define MUELU_THRESHOLDAFILTERFACTORY_DECL_HPP
12
13
/*
14
* MueLu_ThresholdAFilterFactory.hpp
15
*
16
* Created on: 14.10.2011
17
* Author: tobias
18
*/
19
20
#include "
MueLu_ConfigDefs.hpp
"
21
#include "
MueLu_SingleLevelFactoryBase.hpp
"
22
#include "
MueLu_ThresholdAFilterFactory_fwd.hpp
"
23
#include "Teuchos_ScalarTraits.hpp"
24
25
namespace
MueLu
{
26
32
33
template
<
class
Scalar
=
DefaultScalar
,
34
class
LocalOrdinal
=
DefaultLocalOrdinal
,
35
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
36
class
Node
=
DefaultNode
>
37
class
ThresholdAFilterFactory
:
public
SingleLevelFactoryBase
{
38
#undef MUELU_THRESHOLDAFILTERFACTORY_SHORT
39
#include "
MueLu_UseShortNames.hpp
"
40
41
using
magnitudeType
=
typename
Teuchos::ScalarTraits<Scalar>::magnitudeType;
42
43
public
:
45
46
48
ThresholdAFilterFactory
(
const
std::string& ename,
const
magnitudeType
threshold,
const
bool
keepDiagonal =
true
,
const
GlobalOrdinal
expectedNNZperRow = -1);
49
51
52
53
void
DeclareInput
(
Level
& currentLevel)
const
;
54
56
58
59
61
void
Build
(
Level
& currentLevel)
const
;
62
64
65
private
:
66
std::string
varName_
;
67
const
magnitudeType
threshold_
;
68
const
bool
keepDiagonal_
;
69
const
GlobalOrdinal
expectedNNZperRow_
;
70
71
};
// class ThresholdAFilterFactory
72
73
}
// namespace MueLu
74
75
#define MUELU_THRESHOLDAFILTERFACTORY_SHORT
76
#endif
// MUELU_THRESHOLDAFILTERFACTORY_DECL_HPP
MueLu_ConfigDefs.hpp
MueLu_SingleLevelFactoryBase.hpp
MueLu_ThresholdAFilterFactory_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::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
MueLu::SingleLevelFactoryBase::SingleLevelFactoryBase
SingleLevelFactoryBase()
Constructor.
MueLu::ThresholdAFilterFactory::Build
void Build(Level ¤tLevel) const
Build an object with this factory.
Definition
MueLu_ThresholdAFilterFactory_def.hpp:37
MueLu::ThresholdAFilterFactory::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_ThresholdAFilterFactory_def.hpp:31
MueLu::ThresholdAFilterFactory::threshold_
const magnitudeType threshold_
threshold parameter
Definition
MueLu_ThresholdAFilterFactory_decl.hpp:67
MueLu::ThresholdAFilterFactory::varName_
std::string varName_
name of input and output variable
Definition
MueLu_ThresholdAFilterFactory_decl.hpp:66
MueLu::ThresholdAFilterFactory::expectedNNZperRow_
const GlobalOrdinal expectedNNZperRow_
Definition
MueLu_ThresholdAFilterFactory_decl.hpp:69
MueLu::ThresholdAFilterFactory::keepDiagonal_
const bool keepDiagonal_
Definition
MueLu_ThresholdAFilterFactory_decl.hpp:68
MueLu::ThresholdAFilterFactory::ThresholdAFilterFactory
ThresholdAFilterFactory(const std::string &ename, const magnitudeType threshold, const bool keepDiagonal=true, const GlobalOrdinal expectedNNZperRow=-1)
Constructor.
Definition
MueLu_ThresholdAFilterFactory_def.hpp:24
MueLu::ThresholdAFilterFactory::magnitudeType
typename Teuchos::ScalarTraits< Scalar >::magnitudeType magnitudeType
Definition
MueLu_ThresholdAFilterFactory_decl.hpp:41
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
MueLu::DefaultNode
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Definition
MueLu_Details_DefaultTypes.hpp:32
MueLu::DefaultGlobalOrdinal
int DefaultGlobalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:29
MueLu::DefaultLocalOrdinal
int DefaultLocalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:22
MueLu::DefaultScalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
Definition
MueLu_Details_DefaultTypes.hpp:20
src
Misc
MueLu_ThresholdAFilterFactory_decl.hpp
Generated by
1.17.0