MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_ToggleCoordinatesTransferFactory_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_TOGGLECOORDINATESTRANSFER_FACTORY_DECL_HPP
11
#define MUELU_TOGGLECOORDINATESTRANSFER_FACTORY_DECL_HPP
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
#include "
MueLu_TwoLevelFactoryBase.hpp
"
15
16
#include "
MueLu_ToggleCoordinatesTransferFactory_fwd.hpp
"
17
18
namespace
MueLu
{
19
25
template
<
class
Scalar
=
DefaultScalar
,
26
class
LocalOrdinal
=
DefaultLocalOrdinal
,
27
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
28
class
Node
=
DefaultNode
>
29
class
ToggleCoordinatesTransferFactory
:
public
TwoLevelFactoryBase
{
30
#undef MUELU_TOGGLECOORDINATESTRANSFERFACTORY_SHORT
31
#include "
MueLu_UseShortNames.hpp
"
32
33
public
:
35
36
45
ToggleCoordinatesTransferFactory
()
46
:
hasDeclaredInput_
(false) {}
47
49
virtual
~ToggleCoordinatesTransferFactory
() {}
50
51
RCP<const ParameterList>
GetValidParameterList
()
const
;
52
54
56
57
63
void
DeclareInput
(
Level
&finelevel,
Level
&coarseLevel)
const
;
64
66
68
69
71
void
Build
(
Level
&fineLevel,
Level
&coarseLevel)
const
;
72
74
76
77
79
void
AddCoordTransferFactory
(
const
RCP<const FactoryBase> &factory);
80
82
size_t
NumCoordTransferFactories
()
const
{
return
coordFacts_
.size(); }
84
85
private
:
87
mutable
std::vector<RCP<const FactoryBase> >
coordFacts_
;
88
89
mutable
bool
hasDeclaredInput_
;
90
};
// class ToggleCoordinatesTransferFactory
91
92
}
// namespace MueLu
93
94
#define MUELU_TOGGLECOORDINATESTRANSFERFACTORY_SHORT
95
#endif
// MUELU_TOGGLECOORDINATESTRANSFER_FACTORY_DECL_HPP
MueLu_ConfigDefs.hpp
MueLu_ToggleCoordinatesTransferFactory_fwd.hpp
MueLu_TwoLevelFactoryBase.hpp
LocalOrdinal
MueLu::DefaultLocalOrdinal LocalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:13
Scalar
MueLu::DefaultScalar Scalar
Definition
MueLu_UseDefaultTypes.hpp:12
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::ToggleCoordinatesTransferFactory::ToggleCoordinatesTransferFactory
ToggleCoordinatesTransferFactory()
Constructor.
Definition
MueLu_ToggleCoordinatesTransferFactory_decl.hpp:45
MueLu::ToggleCoordinatesTransferFactory::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Definition
MueLu_ToggleCoordinatesTransferFactory_def.hpp:21
MueLu::ToggleCoordinatesTransferFactory::AddCoordTransferFactory
void AddCoordTransferFactory(const RCP< const FactoryBase > &factory)
Add a coordinate transfer factory in the end of list of coordinate transfer factories.
Definition
MueLu_ToggleCoordinatesTransferFactory_def.hpp:77
MueLu::ToggleCoordinatesTransferFactory::NumCoordTransferFactories
size_t NumCoordTransferFactories() const
Returns number of coordinate transfer factories.
Definition
MueLu_ToggleCoordinatesTransferFactory_decl.hpp:82
MueLu::ToggleCoordinatesTransferFactory< Scalar, LocalOrdinal, GlobalOrdinal, Node >::coordFacts_
std::vector< RCP< const FactoryBase > > coordFacts_
Definition
MueLu_ToggleCoordinatesTransferFactory_decl.hpp:87
MueLu::ToggleCoordinatesTransferFactory< Scalar, LocalOrdinal, GlobalOrdinal, Node >::hasDeclaredInput_
bool hasDeclaredInput_
Definition
MueLu_ToggleCoordinatesTransferFactory_decl.hpp:89
MueLu::ToggleCoordinatesTransferFactory::Build
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
Definition
MueLu_ToggleCoordinatesTransferFactory_def.hpp:42
MueLu::ToggleCoordinatesTransferFactory::~ToggleCoordinatesTransferFactory
virtual ~ToggleCoordinatesTransferFactory()
Destructor.
Definition
MueLu_ToggleCoordinatesTransferFactory_decl.hpp:49
MueLu::ToggleCoordinatesTransferFactory::DeclareInput
void DeclareInput(Level &finelevel, Level &coarseLevel) const
Specifies the data that this class needs, and the factories that generate that data.
Definition
MueLu_ToggleCoordinatesTransferFactory_def.hpp:30
MueLu::TwoLevelFactoryBase::TwoLevelFactoryBase
TwoLevelFactoryBase()
Constructor.
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
MueLu::DefaultScalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
Definition
MueLu_Details_DefaultTypes.hpp:20
src
Transfers
SemiCoarsen
MueLu_ToggleCoordinatesTransferFactory_decl.hpp
Generated by
1.17.0