MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_StructuredAggregationFactory_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_DECL_HPP
11
#define MUELU_STRUCTUREDAGGREGATIONFACTORY_DECL_HPP
12
13
// #include <Xpetra_Map_fwd.hpp>
14
// #include <Xpetra_CrsGraph_fwd.hpp>
15
// #include <Xpetra_CrsGraphFactory.hpp>
16
17
#include "
MueLu_ConfigDefs.hpp
"
18
#include "
MueLu_SingleLevelFactoryBase.hpp
"
19
#include "
MueLu_StructuredAggregationFactory_fwd.hpp
"
20
#include "
MueLu_Level_fwd.hpp
"
21
#include "
MueLu_Exceptions.hpp
"
22
#include "
MueLu_AggregationStructuredAlgorithm_fwd.hpp
"
23
24
namespace
MueLu
{
25
67
68
template
<
class
Scalar,
class
LocalOrdinal,
class
GlobalOrdinal,
class
Node>
69
class
StructuredAggregationFactory
:
public
SingleLevelFactoryBase
{
70
#undef MUELU_STRUCTUREDAGGREGATIONFACTORY_SHORT
71
#include "
MueLu_UseShortNames.hpp
"
72
73
public
:
75
76
78
StructuredAggregationFactory
();
79
81
virtual
~StructuredAggregationFactory
() {}
82
83
RCP<const ParameterList>
GetValidParameterList
()
const
;
84
86
88
89
// set information about 1-node aggregates (map name and generating factory)
90
void
SetOnePtMapName
(
const
std::string name, Teuchos::RCP<const FactoryBase> mapFact) {
91
SetParameter
(
"OnePt aggregate map name"
, ParameterEntry(std::string(name)));
// revalidate
92
SetFactory
(
"OnePt aggregate map factory"
, mapFact);
93
}
94
96
98
99
100
void
DeclareInput
(
Level
& currentLevel)
const
;
101
103
105
106
108
void
Build
(
Level
& currentLevel)
const
;
109
111
112
private
:
116
mutable
bool
bDefinitionPhase_
;
117
118
};
// class StructuredAggregationFactory
119
120
}
// namespace MueLu
121
122
#define MUELU_STRUCTUREDAGGREGATIONFACTORY_SHORT
123
#endif
/* MUELU_STRUCTUREDAGGREGATIONFACTORY_DECL_HPP */
MueLu_AggregationStructuredAlgorithm_fwd.hpp
MueLu_ConfigDefs.hpp
MueLu_Exceptions.hpp
MueLu_Level_fwd.hpp
MueLu_SingleLevelFactoryBase.hpp
MueLu_StructuredAggregationFactory_fwd.hpp
MueLu_UseShortNames.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::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_StructuredAggregationFactory_def.hpp:71
MueLu::StructuredAggregationFactory::SetOnePtMapName
void SetOnePtMapName(const std::string name, Teuchos::RCP< const FactoryBase > mapFact)
Definition
MueLu_StructuredAggregationFactory_decl.hpp:90
MueLu::StructuredAggregationFactory::bDefinitionPhase_
bool bDefinitionPhase_
Definition
MueLu_StructuredAggregationFactory_decl.hpp:116
MueLu::StructuredAggregationFactory::Build
void Build(Level ¤tLevel) const
Build aggregates.
Definition
MueLu_StructuredAggregationFactory_def.hpp:117
MueLu::StructuredAggregationFactory::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Definition
MueLu_StructuredAggregationFactory_def.hpp:37
MueLu::StructuredAggregationFactory::~StructuredAggregationFactory
virtual ~StructuredAggregationFactory()
Destructor.
Definition
MueLu_StructuredAggregationFactory_decl.hpp:81
MueLu::StructuredAggregationFactory::StructuredAggregationFactory
StructuredAggregationFactory()
Constructor.
Definition
MueLu_StructuredAggregationFactory_def.hpp:32
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
src
Graph
StructuredAggregation
MueLu_StructuredAggregationFactory_decl.hpp
Generated by
1.17.0