MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_TentativePFactory_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_TENTATIVEPFACTORY_DECL_HPP
11
#define MUELU_TENTATIVEPFACTORY_DECL_HPP
12
13
#include <Teuchos_ScalarTraits.hpp>
14
#include <Teuchos_SerialDenseMatrix.hpp>
15
#include <Teuchos_SerialQRDenseSolver.hpp>
16
17
#include <Xpetra_CrsGraphFactory_fwd.hpp>
18
#include <Xpetra_CrsMatrix_fwd.hpp>
19
#include <Xpetra_Matrix_fwd.hpp>
20
#include <Xpetra_MultiVector_fwd.hpp>
21
#include <Xpetra_MapFactory_fwd.hpp>
22
#include <Xpetra_Map_fwd.hpp>
23
#include <Xpetra_MultiVectorFactory_fwd.hpp>
24
#include <Xpetra_Import_fwd.hpp>
25
#include <Xpetra_ImportFactory_fwd.hpp>
26
#include <Xpetra_CrsMatrixWrap_fwd.hpp>
27
28
#include "
MueLu_ConfigDefs.hpp
"
29
#include "
MueLu_TentativePFactory_fwd.hpp
"
30
31
#include "
MueLu_Aggregates_fwd.hpp
"
32
#include "
MueLu_AmalgamationFactory_fwd.hpp
"
33
#include "
MueLu_AmalgamationInfo_fwd.hpp
"
34
#include "
MueLu_CoarseMapFactory_fwd.hpp
"
35
#include "
MueLu_Level_fwd.hpp
"
36
#include "
MueLu_PerfUtils_fwd.hpp
"
37
#include "MueLu_PFactory.hpp"
38
#include "
MueLu_Utilities_fwd.hpp
"
39
40
namespace
MueLu
{
41
80
81
template
<
class
Scalar
=
DefaultScalar
,
82
class
LocalOrdinal
=
DefaultLocalOrdinal
,
83
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
84
class
Node
=
DefaultNode
>
85
class
TentativePFactory
:
public
PFactory
{
86
#undef MUELU_TENTATIVEPFACTORY_SHORT
87
#include "
MueLu_UseShortNames.hpp
"
88
89
public
:
91
92
94
TentativePFactory
() {}
95
97
virtual
~TentativePFactory
() {}
99
100
RCP<const ParameterList>
GetValidParameterList
()
const
;
101
103
104
105
void
DeclareInput
(
Level
& fineLevel,
Level
& coarseLevel)
const
;
106
108
110
111
112
void
Build
(
Level
& fineLevel,
Level
& coarseLevel)
const
;
113
void
BuildP
(
Level
& fineLevel,
Level
& coarseLevel)
const
;
114
116
117
private
:
118
void
BuildPuncoupled
(RCP<Matrix> A, RCP<Aggregates> aggregates, RCP<AmalgamationInfo> amalgInfo, RCP<MultiVector> fineNullspace,
119
RCP<const Map> coarseMap, RCP<Matrix>& Ptentative, RCP<MultiVector>& coarseNullspace,
const
int
levelID)
const
;
120
void
BuildPcoupled
(RCP<Matrix> A, RCP<Aggregates> aggregates, RCP<AmalgamationInfo> amalgInfo, RCP<MultiVector> fineNullspace,
121
RCP<const Map> coarseMap, RCP<Matrix>& Ptentative, RCP<MultiVector>& coarseNullspace)
const
;
122
void
BuildPuncoupledBlockCrs
(RCP<Matrix> A, RCP<Aggregates> aggregates, RCP<AmalgamationInfo> amalgInfo, RCP<MultiVector> fineNullspace,
123
RCP<const Map> coarseMap, RCP<Matrix>& Ptentative, RCP<MultiVector>& coarseNullspace,
const
int
levelID)
const
;
124
125
mutable
bool
bTransferCoordinates_
=
false
;
126
127
};
// class TentativePFactory
128
129
}
// namespace MueLu
130
131
// TODO: noQR_
132
133
#define MUELU_TENTATIVEPFACTORY_SHORT
134
#endif
// MUELU_TENTATIVEPFACTORY_DECL_HPP
MueLu_Aggregates_fwd.hpp
MueLu_AmalgamationFactory_fwd.hpp
MueLu_AmalgamationInfo_fwd.hpp
MueLu_CoarseMapFactory_fwd.hpp
MueLu_ConfigDefs.hpp
MueLu_Level_fwd.hpp
MueLu_PerfUtils_fwd.hpp
MueLu_TentativePFactory_fwd.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_Utilities_fwd.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::TentativePFactory::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Definition
MueLu_TentativePFactory_def.hpp:43
MueLu::TentativePFactory::BuildPuncoupled
void BuildPuncoupled(RCP< Matrix > A, RCP< Aggregates > aggregates, RCP< AmalgamationInfo > amalgInfo, RCP< MultiVector > fineNullspace, RCP< const Map > coarseMap, RCP< Matrix > &Ptentative, RCP< MultiVector > &coarseNullspace, const int levelID) const
Definition
MueLu_TentativePFactory_def.hpp:794
MueLu::TentativePFactory::BuildP
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
Definition
MueLu_TentativePFactory_def.hpp:98
MueLu::TentativePFactory::TentativePFactory
TentativePFactory()
Constructor.
Definition
MueLu_TentativePFactory_decl.hpp:94
MueLu::TentativePFactory< Scalar, LocalOrdinal, GlobalOrdinal, Node >::bTransferCoordinates_
bool bTransferCoordinates_
Definition
MueLu_TentativePFactory_decl.hpp:125
MueLu::TentativePFactory::~TentativePFactory
virtual ~TentativePFactory()
Destructor.
Definition
MueLu_TentativePFactory_decl.hpp:97
MueLu::TentativePFactory::BuildPuncoupledBlockCrs
void BuildPuncoupledBlockCrs(RCP< Matrix > A, RCP< Aggregates > aggregates, RCP< AmalgamationInfo > amalgInfo, RCP< MultiVector > fineNullspace, RCP< const Map > coarseMap, RCP< Matrix > &Ptentative, RCP< MultiVector > &coarseNullspace, const int levelID) const
Definition
MueLu_TentativePFactory_def.hpp:238
MueLu::TentativePFactory::DeclareInput
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
Definition
MueLu_TentativePFactory_def.hpp:71
MueLu::TentativePFactory::Build
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
Definition
MueLu_TentativePFactory_def.hpp:93
MueLu::TentativePFactory::BuildPcoupled
void BuildPcoupled(RCP< Matrix > A, RCP< Aggregates > aggregates, RCP< AmalgamationInfo > amalgInfo, RCP< MultiVector > fineNullspace, RCP< const Map > coarseMap, RCP< Matrix > &Ptentative, RCP< MultiVector > &coarseNullspace) const
Definition
MueLu_TentativePFactory_def.hpp:431
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
Smoothed-Aggregation
MueLu_TentativePFactory_decl.hpp
Generated by
1.17.0