MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_InverseApproximationFactory_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_INVERSEAPPROXIMATIONFACTORY_DECL_HPP_
11
#define MUELU_INVERSEAPPROXIMATIONFACTORY_DECL_HPP_
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
15
#include <Teuchos_ParameterList.hpp>
16
17
#include <Xpetra_CrsMatrix_fwd.hpp>
18
#include <Xpetra_Map_fwd.hpp>
19
20
#include "
MueLu_FactoryBase_fwd.hpp
"
21
#include "
MueLu_SingleLevelFactoryBase.hpp
"
22
#include "
MueLu_Utilities_fwd.hpp
"
23
24
namespace
MueLu
{
25
58
59
template
<
class
Scalar
=
DefaultScalar
,
60
class
LocalOrdinal
=
DefaultLocalOrdinal
,
61
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
62
class
Node
=
DefaultNode
>
63
class
InverseApproximationFactory
:
public
SingleLevelFactoryBase
{
64
#undef MUELU_INVERSEAPPROXIMATIONFACTORY_SHORT
65
#include "
MueLu_UseShortNames.hpp
"
66
67
public
:
69
70
72
InverseApproximationFactory
() =
default
;
73
75
76
77
void
DeclareInput
(
Level
& currentLevel)
const
;
78
79
RCP<const ParameterList>
GetValidParameterList
()
const
;
80
82
84
85
87
void
Build
(
Level
& currentLevel)
const
;
88
90
91
private
:
93
RCP<Matrix>
GetSparseInverse
(
const
RCP<Matrix>& A,
const
RCP<const CrsGraph>& sparsityPattern)
const
;
94
95
};
// class InverseApproximationFactory
96
97
}
// namespace MueLu
98
99
#define MUELU_INVERSEAPPROXIMATIONFACTORY_SHORT
100
#endif
/* MUELU_INVERSEAPPROXIMATIONFACTORY_DECL_HPP_ */
MueLu_ConfigDefs.hpp
MueLu_FactoryBase_fwd.hpp
MueLu_SingleLevelFactoryBase.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::InverseApproximationFactory::InverseApproximationFactory
InverseApproximationFactory()=default
Constructor.
MueLu::InverseApproximationFactory::Build
void Build(Level ¤tLevel) const
Build an object with this factory.
Definition
MueLu_InverseApproximationFactory_def.hpp:56
MueLu::InverseApproximationFactory::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_InverseApproximationFactory_def.hpp:51
MueLu::InverseApproximationFactory::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Definition
MueLu_InverseApproximationFactory_def.hpp:37
MueLu::InverseApproximationFactory::GetSparseInverse
RCP< Matrix > GetSparseInverse(const RCP< Matrix > &A, const RCP< const CrsGraph > &sparsityPattern) const
Sparse inverse calculation method.
Definition
MueLu_InverseApproximationFactory_def.hpp:107
MueLu::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
MueLu::SingleLevelFactoryBase::SingleLevelFactoryBase
SingleLevelFactoryBase()
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
Misc
MueLu_InverseApproximationFactory_decl.hpp
Generated by
1.17.0