MueLu
Version of the Day
Toggle main menu visibility
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"
18
#include "
MueLu_SemiCoarsenPFactory_kokkos_fwd.hpp
"
19
20
namespace
MueLu
{
21
59
60
template
<
class
Scalar,
class
LocalOrdinal,
class
GlobalOrdinal,
class
Node>
61
class
SemiCoarsenPFactory_kokkos
:
public
PFactory
{
62
public
:
63
typedef
LocalOrdinal
local_ordinal_type
;
64
typedef
GlobalOrdinal
global_ordinal_type
;
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
78
SemiCoarsenPFactory_kokkos
()
79
:
bTransferCoordinates_
(false) {}
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
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
MueLu_ConfigDefs.hpp
MueLu_Level_fwd.hpp
MueLu_SemiCoarsenPFactory_kokkos_fwd.hpp
LocalOrdinal
MueLu::DefaultLocalOrdinal LocalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:13
GlobalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:14
Node
MueLu::DefaultNode Node
Definition
MueLu_UseDefaultTypes.hpp:15
MueLu_UseShortNames.hpp
MueLu::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
MueLu::PFactory::PFactory
PFactory()
Constructor.
Definition
MueLu_PFactory_decl.hpp:37
MueLu::SemiCoarsenPFactory_kokkos::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Definition
MueLu_SemiCoarsenPFactory_kokkos_def.hpp:41
MueLu::SemiCoarsenPFactory_kokkos::global_ordinal_type
GlobalOrdinal global_ordinal_type
Definition
MueLu_SemiCoarsenPFactory_kokkos_decl.hpp:64
MueLu::SemiCoarsenPFactory_kokkos::execution_space
Node::execution_space execution_space
Definition
MueLu_SemiCoarsenPFactory_kokkos_decl.hpp:65
MueLu::SemiCoarsenPFactory_kokkos::BuildSemiCoarsenP
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
Definition
MueLu_SemiCoarsenPFactory_kokkos_def.hpp:298
MueLu::SemiCoarsenPFactory_kokkos::bTransferCoordinates_
bool bTransferCoordinates_
Definition
MueLu_SemiCoarsenPFactory_kokkos_decl.hpp:111
MueLu::SemiCoarsenPFactory_kokkos::node_type
Node node_type
Definition
MueLu_SemiCoarsenPFactory_kokkos_decl.hpp:67
MueLu::SemiCoarsenPFactory_kokkos::Build
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
Definition
MueLu_SemiCoarsenPFactory_kokkos_def.hpp:104
MueLu::SemiCoarsenPFactory_kokkos::~SemiCoarsenPFactory_kokkos
virtual ~SemiCoarsenPFactory_kokkos()=default
Destructor.
MueLu::SemiCoarsenPFactory_kokkos::SemiCoarsenPFactory_kokkos
SemiCoarsenPFactory_kokkos()
Constructor.
Definition
MueLu_SemiCoarsenPFactory_kokkos_decl.hpp:78
MueLu::SemiCoarsenPFactory_kokkos::local_ordinal_type
LocalOrdinal local_ordinal_type
Definition
MueLu_SemiCoarsenPFactory_kokkos_decl.hpp:63
MueLu::SemiCoarsenPFactory_kokkos::DeclareInput
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
Definition
MueLu_SemiCoarsenPFactory_kokkos_def.hpp:71
MueLu::SemiCoarsenPFactory_kokkos::BuildP
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
Definition
MueLu_SemiCoarsenPFactory_kokkos_def.hpp:113
MueLu::SemiCoarsenPFactory_kokkos::DeviceType
Node::device_type DeviceType
Definition
MueLu_SemiCoarsenPFactory_kokkos_decl.hpp:66
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
src
Transfers
SemiCoarsen
MueLu_SemiCoarsenPFactory_kokkos_decl.hpp
Generated by
1.17.0