MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_StructuredAggregationFactory_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_STRUCTUREDAGGREGATIONFACTORY_KOKKOS_DECL_HPP
11
#define MUELU_STRUCTUREDAGGREGATIONFACTORY_KOKKOS_DECL_HPP
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
#include "
MueLu_SingleLevelFactoryBase.hpp
"
15
#include "
MueLu_Level_fwd.hpp
"
16
#include "
MueLu_Exceptions.hpp
"
17
18
#include "
MueLu_AggregationStructuredAlgorithm_fwd.hpp
"
19
20
#include <Tpetra_KokkosCompat_ClassicNodeAPI_Wrapper.hpp>
21
22
namespace
MueLu
{
23
69
70
template
<
class
LocalOrdinal
=
DefaultLocalOrdinal
,
71
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
72
class
Node
=
DefaultNode
>
73
class
StructuredAggregationFactory_kokkos
:
public
SingleLevelFactoryBase
{
74
#undef MUELU_STRUCTUREDAGGREGATIONFACTORY_KOKKOS_SHORT
75
#include "
MueLu_UseShortNamesOrdinal.hpp
"
76
77
public
:
79
80
82
StructuredAggregationFactory_kokkos
();
83
85
virtual
~StructuredAggregationFactory_kokkos
() {}
86
87
RCP<const ParameterList>
GetValidParameterList
()
const
;
88
90
92
93
// set information about 1-node aggregates (map name and generating factory)
94
void
SetOnePtMapName
(
const
std::string name, Teuchos::RCP<const FactoryBase> mapFact) {
95
SetParameter
(
"OnePt aggregate map name"
, ParameterEntry(std::string(name)));
// revalidate
96
SetFactory
(
"OnePt aggregate map factory"
, mapFact);
97
}
98
100
102
103
104
void
DeclareInput
(
Level
& currentLevel)
const
;
105
107
109
110
112
void
Build
(
Level
& currentLevel)
const
;
113
115
116
private
:
120
mutable
bool
bDefinitionPhase_
;
121
122
};
// class StructuredAggregationFactory
123
124
}
// namespace MueLu
125
126
#define MUELU_STRUCTUREDAGGREGATIONFACTORY_KOKKOS_SHORT
127
#endif
// MUELU_UNCOUPLEDAGGREGATIONFACTORY_KOKKOS_DECL_HPP
MueLu_AggregationStructuredAlgorithm_fwd.hpp
MueLu_ConfigDefs.hpp
MueLu_Exceptions.hpp
MueLu_Level_fwd.hpp
MueLu_SingleLevelFactoryBase.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_UseShortNamesOrdinal.hpp
MueLu::Factory::SetFactory
virtual void SetFactory(const std::string &varName, const RCP< const FactoryBase > &factory)
Configuration.
Definition
MueLu_Factory.cpp:25
MueLu::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
MueLu::ParameterListAcceptorImpl::SetParameter
void SetParameter(const std::string &name, const ParameterEntry &entry)
Set a parameter directly as a ParameterEntry.
Definition
MueLu_ParameterListAcceptor.cpp:77
MueLu::SingleLevelFactoryBase::SingleLevelFactoryBase
SingleLevelFactoryBase()
Constructor.
MueLu::StructuredAggregationFactory_kokkos::StructuredAggregationFactory_kokkos
StructuredAggregationFactory_kokkos()
Constructor.
Definition
MueLu_StructuredAggregationFactory_kokkos_def.hpp:34
MueLu::StructuredAggregationFactory_kokkos< LocalOrdinal, GlobalOrdinal, Node >::bDefinitionPhase_
bool bDefinitionPhase_
Definition
MueLu_StructuredAggregationFactory_kokkos_decl.hpp:120
MueLu::StructuredAggregationFactory_kokkos::Build
void Build(Level ¤tLevel) const
Build aggregates.
Definition
MueLu_StructuredAggregationFactory_kokkos_def.hpp:98
MueLu::StructuredAggregationFactory_kokkos::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_StructuredAggregationFactory_kokkos_def.hpp:70
MueLu::StructuredAggregationFactory_kokkos::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Definition
MueLu_StructuredAggregationFactory_kokkos_def.hpp:39
MueLu::StructuredAggregationFactory_kokkos::SetOnePtMapName
void SetOnePtMapName(const std::string name, Teuchos::RCP< const FactoryBase > mapFact)
Definition
MueLu_StructuredAggregationFactory_kokkos_decl.hpp:94
MueLu::StructuredAggregationFactory_kokkos::~StructuredAggregationFactory_kokkos
virtual ~StructuredAggregationFactory_kokkos()
Destructor.
Definition
MueLu_StructuredAggregationFactory_kokkos_decl.hpp:85
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
MueLu::DefaultNode
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Definition
MueLu_Details_DefaultTypes.hpp:32
MueLu::DefaultGlobalOrdinal
int DefaultGlobalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:29
MueLu::DefaultLocalOrdinal
int DefaultLocalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:22
src
Graph
StructuredAggregation
MueLu_StructuredAggregationFactory_kokkos_decl.hpp
Generated by
1.17.0