MueLu Version of the Day
Loading...
Searching...
No Matches
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
20namespace MueLu {
21
60template <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
72
73 public:
75
76
80
82 virtual ~SemiCoarsenPFactory_kokkos() = default;
84
85 RCP<const ParameterList> GetValidParameterList() const;
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
112}; // class SemiCoarsenPFactory_kokkos
113
114} // namespace MueLu
115
116#define MUELU_SEMICOARSENPFACTORY_KOKKOS_SHORT
117#endif // MUELU_SEMICOARSENPFACTORY_KOKKOS_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Class that holds all level-specific information.
Factory that provides an interface for a concrete implementation of a prolongation operator.
Prolongator factory performing semi-coarsening.
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
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
virtual ~SemiCoarsenPFactory_kokkos()=default
Destructor.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
Namespace for MueLu classes and methods.