MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_PreDropFunctionConstVal_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_PREDROPFUNCTIONCONSTVAL_DECL_HPP
11
#define MUELU_PREDROPFUNCTIONCONSTVAL_DECL_HPP
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
#include "MueLu_PreDropFunctionBaseClass.hpp"
15
#include "
MueLu_PreDropFunctionConstVal_fwd.hpp
"
16
17
namespace
MueLu
{
18
23
template
<
class
Scalar
=
DefaultScalar
,
24
class
LocalOrdinal
=
DefaultLocalOrdinal
,
25
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
26
class
Node
=
DefaultNode
>
27
class
PreDropFunctionConstVal
:
public
MueLu::PreDropFunctionBaseClass
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
28
#undef MUELU_PREDROPFUNCTIONCONSTVAL_SHORT
29
#include "
MueLu_UseShortNames.hpp
"
30
31
public
:
33
explicit
PreDropFunctionConstVal
(
const
Scalar
threshold = 0.0);
34
36
virtual
~PreDropFunctionConstVal
() {}
37
48
bool
Drop
(
size_t
lrow,
GlobalOrdinal
grow,
size_t
k,
LocalOrdinal
lcid,
GlobalOrdinal
gcid,
const
Teuchos::ArrayView<const LocalOrdinal>& indices,
const
Teuchos::ArrayView<const Scalar>& vals);
49
51
Scalar
GetThreshold
()
const
;
52
54
55
57
std::string
description
()
const
;
58
60
// using MueLu::Describable::describe; // overloading, not hiding
61
// void describe(Teuchos::FancyOStream &out, const VerbLevel verbLevel = Default) const;
62
64
65
private
:
66
Scalar
threshold_
;
67
};
68
69
}
// namespace MueLu
70
71
#define MUELU_PREDROPFUNCTIONCONSTVAL_SHORT
72
#endif
// MUELU_PREDROPFUNCTIONCONSTVAL_DECL_HPP
MueLu_ConfigDefs.hpp
MueLu_PreDropFunctionConstVal_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::PreDropFunctionBaseClass
Definition
MueLu_PreDropFunctionBaseClass_decl.hpp:27
MueLu::PreDropFunctionConstVal< Scalar, LocalOrdinal, GlobalOrdinal, Node >::threshold_
Scalar threshold_
Definition
MueLu_PreDropFunctionConstVal_decl.hpp:66
MueLu::PreDropFunctionConstVal::PreDropFunctionConstVal
PreDropFunctionConstVal(const Scalar threshold=0.0)
Constructor.
Definition
MueLu_PreDropFunctionConstVal_def.hpp:21
MueLu::PreDropFunctionConstVal::~PreDropFunctionConstVal
virtual ~PreDropFunctionConstVal()
Destructor.
Definition
MueLu_PreDropFunctionConstVal_decl.hpp:36
MueLu::PreDropFunctionConstVal::GetThreshold
Scalar GetThreshold() const
Return threshold value.
Definition
MueLu_PreDropFunctionConstVal_def.hpp:33
MueLu::PreDropFunctionConstVal::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_PreDropFunctionConstVal_def.hpp:38
MueLu::PreDropFunctionConstVal::Drop
bool Drop(size_t lrow, GlobalOrdinal grow, size_t k, LocalOrdinal lcid, GlobalOrdinal gcid, const Teuchos::ArrayView< const LocalOrdinal > &indices, const Teuchos::ArrayView< const Scalar > &vals)
Definition
MueLu_PreDropFunctionConstVal_def.hpp:25
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
Graph
MatrixTransformation
MueLu_PreDropFunctionConstVal_decl.hpp
Generated by
1.17.0