MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_CoalesceDropFactory_kokkos_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_COALESCEDROPFACTORY_KOKKOS_DECL_HPP
11 #define MUELU_COALESCEDROPFACTORY_KOKKOS_DECL_HPP
12 
13 #include "MueLu_ConfigDefs.hpp"
14 
15 #include <Tpetra_KokkosCompat_ClassicNodeAPI_Wrapper.hpp>
16 
17 #include "Xpetra_Matrix_fwd.hpp"
18 
20 
23 #include "MueLu_Level_fwd.hpp"
26 #include "MueLu_Utilities_fwd.hpp"
27 
28 namespace MueLu {
29 
95 template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
97  : public SingleLevelFactoryBase {
98  public:
101  using execution_space = typename Node::execution_space;
102  using range_type = Kokkos::RangePolicy<local_ordinal_type, execution_space>;
103  using node_type = Node;
104 
105  private:
107 
108  // For compatibility
109 #undef MUELU_COALESCEDROPFACTORY_KOKKOS_SHORT
110 #include "MueLu_UseShortNames.hpp"
111 
112  public:
114 
115 
118 
121 
123 
125 
127 
128 
129  void DeclareInput(Level& currentLevel) const;
130 
132 
133  void Build(Level& currentLevel) const;
134 
135  std::tuple<GlobalOrdinal, boundary_nodes_type> BuildScalar(Level& currentLevel) const;
136 
137  std::tuple<GlobalOrdinal, boundary_nodes_type> BuildVector(Level& currentLevel) const;
138 };
139 
140 } // namespace MueLu
141 
142 #define MUELU_COALESCEDROPFACTORY_KOKKOS_SHORT
143 #endif // MUELU_COALESCEDROPFACTORY_KOKKOS_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultNode Node
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
typename MueLu::LWGraph_kokkos< LocalOrdinal, GlobalOrdinal, Node >::boundary_nodes_type boundary_nodes_type
void DeclareInput(Level &currentLevel) const
Input.
Kokkos::RangePolicy< local_ordinal_type, execution_space > range_type
std::tuple< GlobalOrdinal, boundary_nodes_type > BuildVector(Level &currentLevel) const
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void Build(Level &currentLevel) const
Build an object with this factory.
std::tuple< GlobalOrdinal, boundary_nodes_type > BuildScalar(Level &currentLevel) const
Factory for creating a graph based on a given matrix.
Base class for factories that use one level (currentLevel).