MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_MatrixFreeTentativePFactory_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_MATRIXFREETENTATIVEPFACTORY_DECL_HPP
11 #define MUELU_MATRIXFREETENTATIVEPFACTORY_DECL_HPP
12 
13 #include "MueLu_ConfigDefs.hpp"
14 
16 
17 #include <Tpetra_KokkosCompat_ClassicNodeAPI_Wrapper.hpp>
18 
19 #include "Teuchos_ScalarTraits.hpp"
20 
21 #include "MueLu_Aggregates_fwd.hpp"
23 #include "MueLu_Level_fwd.hpp"
24 #include "MueLu_PFactory.hpp"
25 
26 namespace MueLu {
27 
65 template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
67  public:
70  typedef typename Node::execution_space execution_space;
71  typedef Kokkos::RangePolicy<local_ordinal_type, execution_space> range_type;
72  typedef Node node_type;
74 
75  private:
76 #undef MUELU_MATRIXFREETENTATIVEPFACTORY_SHORT
77 #include "MueLu_UseShortNames.hpp"
78 
79  public:
81 
82 
85 
89 
91 
93 
94 
95  void DeclareInput(Level& fineLevel, Level& coarseLevel) const;
96 
98 
100 
101 
102  void Build(Level& fineLevel, Level& coarseLevel) const;
103  void BuildP(Level& fineLevel, Level& coarseLevel) const;
104 
106 };
107 
108 } // namespace MueLu
109 
110 #define MUELU_MATRIXFREETENTATIVEPFACTORY_SHORT
111 #endif // MUELU_MATRIXFREETENTATIVEPFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
Kokkos::RangePolicy< local_ordinal_type, execution_space > range_type
Factory for building the matrix-free tentative restrictor.
MueLu::DefaultNode Node
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
Teuchos::ScalarTraits< Scalar >::coordinateType real_type
Factory that provides an interface for a concrete implementation of a prolongation operator...
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.