MueLu Version of the Day
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"
16
17namespace MueLu {
18
23template <class Scalar = DefaultScalar,
26 class Node = DefaultNode>
27class PreDropFunctionConstVal : public MueLu::PreDropFunctionBaseClass<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
28#undef MUELU_PREDROPFUNCTIONCONSTVAL_SHORT
30
31 public:
33 explicit PreDropFunctionConstVal(const Scalar threshold = 0.0);
34
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:
67};
68
69} // namespace MueLu
70
71#define MUELU_PREDROPFUNCTIONCONSTVAL_SHORT
72#endif // MUELU_PREDROPFUNCTIONCONSTVAL_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Scalar threshold_
Print the object with some verbosity level to an FancyOStream object.
Scalar GetThreshold() const
Return threshold value.
std::string description() const
Return a simple one-line description of this object.
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)
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar