MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
17 namespace MueLu {
18 
23 template <class Scalar = DefaultScalar,
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 
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
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
MueLu::DefaultNode Node
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)
Scalar GetThreshold() const
Return threshold value.
MueLu::DefaultScalar Scalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Scalar threshold_
Print the object with some verbosity level to an FancyOStream object.
std::string description() const
Return a simple one-line description of this object.
PreDropFunctionConstVal(const Scalar threshold=0.0)
Constructor.