MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_SemiCoarsenPFactory_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_SEMICOARSENPFACTORY_KOKKOS_DECL_HPP
11 #define MUELU_SEMICOARSENPFACTORY_KOKKOS_DECL_HPP
12 
13 #include <Xpetra_Matrix_fwd.hpp>
14 
15 #include "MueLu_ConfigDefs.hpp"
16 #include "MueLu_Level_fwd.hpp"
17 #include "MueLu_PFactory.hpp"
19 
20 namespace MueLu {
21 
60 template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
62  public:
65  typedef typename Node::execution_space execution_space;
66  typedef typename Node::device_type DeviceType;
67  typedef Node node_type;
68 
69  private:
70 #undef MUELU_SEMICOARSENPFACTORY_KOKKOS_SHORT
71 #include "MueLu_UseShortNames.hpp"
72 
73  public:
75 
76 
79  : bTransferCoordinates_(false) {}
80 
82  virtual ~SemiCoarsenPFactory_kokkos() = default;
84 
86 
88 
89 
90  void DeclareInput(Level &fineLevel, Level &coarseLevel) const;
91 
93 
95 
96 
97  void Build(Level &fineLevel, Level &coarseLevel) const;
98  void BuildP(Level &fineLevel, Level &coarseLevel) const;
99 
101 
102  void BuildSemiCoarsenP(Level &coarseLevel, const LO NFRows, const LO NFNodes,
103  const LO DofsPerNode, const LO NFLayers,
104  const LO NCLayers, const ArrayRCP<LO> LayerId,
105  const ArrayRCP<LO> VertLineId, const RCP<Matrix> &Amat,
106  const RCP<MultiVector> fineNullspace, RCP<Matrix> &P,
107  RCP<MultiVector> &coarseNullspace) const;
108 
109  // boolean which is true if coordinate information is available to be
110  // transferred to coarse coordinate information
111  mutable bool bTransferCoordinates_;
112 }; // class SemiCoarsenPFactory_kokkos
113 
114 } // namespace MueLu
115 
116 #define MUELU_SEMICOARSENPFACTORY_KOKKOS_SHORT
117 #endif // MUELU_SEMICOARSENPFACTORY_KOKKOS_DECL_HPP
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
MueLu::DefaultLocalOrdinal LocalOrdinal
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
LocalOrdinal LO
MueLu::DefaultNode Node
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void BuildSemiCoarsenP(Level &coarseLevel, const LO NFRows, const LO NFNodes, const LO DofsPerNode, const LO NFLayers, const LO NCLayers, const ArrayRCP< LO > LayerId, const ArrayRCP< LO > VertLineId, const RCP< Matrix > &Amat, const RCP< MultiVector > fineNullspace, RCP< Matrix > &P, RCP< MultiVector > &coarseNullspace) const
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
Factory that provides an interface for a concrete implementation of a prolongation operator...
virtual ~SemiCoarsenPFactory_kokkos()=default
Destructor.
Prolongator factory performing semi-coarsening.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.