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 
22 #include "MueLu_Level_fwd.hpp"
25 #include "MueLu_Utilities_fwd.hpp"
26 
27 namespace MueLu {
28 
94 template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
96  : public SingleLevelFactoryBase {
97  public:
100  using execution_space = typename Node::execution_space;
101  using range_type = Kokkos::RangePolicy<local_ordinal_type, execution_space>;
102  using node_type = Node;
103 
104  private:
105  // For compatibility
106 #undef MUELU_COALESCEDROPFACTORY_KOKKOS_SHORT
107 #include "MueLu_UseShortNames.hpp"
108 
109  public:
111 
112 
115 
118 
120 
122 
124 
125 
126  void DeclareInput(Level& currentLevel) const;
127 
129 
130  void Build(Level& currentLevel) const;
131 };
132 
133 } // namespace MueLu
134 
135 #define MUELU_COALESCEDROPFACTORY_KOKKOS_SHORT
136 #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
void DeclareInput(Level &currentLevel) const
Input.
Kokkos::RangePolicy< local_ordinal_type, execution_space > range_type
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.
Factory for creating a graph based on a given matrix.
Base class for factories that use one level (currentLevel).