MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_BlockedDirectSolver_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
/*
11
* MueLu_BlockedDirectSolver_decl.hpp
12
*
13
* Created on: 09.02.2014
14
* Author: tobias
15
*/
16
17
#ifndef MUELU_BLOCKEDDIRECTSOLVER_DECL_HPP_
18
#define MUELU_BLOCKEDDIRECTSOLVER_DECL_HPP_
19
20
#include "
MueLu_ConfigDefs.hpp
"
21
22
#include <Teuchos_ParameterList.hpp>
23
24
#include <Xpetra_MapExtractor_fwd.hpp>
25
26
#include "
MueLu_BlockedDirectSolver_fwd.hpp
"
27
#include "MueLu_SmootherPrototype.hpp"
28
#include "
MueLu_DirectSolver_fwd.hpp
"
29
#include "
MueLu_MergedBlockedMatrixFactory_fwd.hpp
"
30
#include "
MueLu_FactoryBase_fwd.hpp
"
31
32
namespace
MueLu
{
33
41
42
template <class Scalar = SmootherPrototype<>::scalar_type,
43
class
LocalOrdinal
=
typename
SmootherPrototype<Scalar>::local_ordinal_type
,
44
class
GlobalOrdinal
=
typename
SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type
,
45
class
Node
=
typename
SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type
>
46
class
BlockedDirectSolver
:
public
SmootherPrototype
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
47
typedef
Xpetra::MapExtractor<Scalar, LocalOrdinal, GlobalOrdinal, Node>
MapExtractorClass
;
48
49
#undef MUELU_BLOCKEDDIRECTSOLVER_SHORT
50
#include "
MueLu_UseShortNames.hpp
"
51
52
public
:
54
55
58
BlockedDirectSolver
(
const
std::string& type =
""
,
const
Teuchos::ParameterList& paramList = Teuchos::ParameterList());
59
61
virtual
~BlockedDirectSolver
() {}
63
65
66
RCP<const ParameterList>
GetValidParameterList
()
const
;
67
68
void
DeclareInput
(
Level
& currentLevel)
const
;
70
72
73
77
void
Setup
(
Level
& currentLevel);
78
85
void
Apply
(MultiVector& X,
const
MultiVector& B,
bool
InitialGuessIsZero =
false
)
const
;
87
88
RCP<SmootherPrototype>
Copy
()
const
;
89
91
92
94
std::string
description
()
const
;
95
97
// using MueLu::Describable::describe; // overloading, not hiding
98
void
print
(Teuchos::FancyOStream& out,
const
VerbLevel
verbLevel =
Default
)
const
;
99
101
size_t
getNodeSmootherComplexity
()
const
;
102
104
105
private
:
107
std::string
type_
;
108
110
RCP<MergedBlockedMatrixFactory>
MergedAFact_
;
111
113
RCP<DirectSolver>
s_
;
// solver object
114
116
RCP<Matrix>
A_
;
// < ! internal blocked operator "A" generated by AFact_
117
118
};
// class BlockedDirectSolver
119
120
}
// namespace MueLu
121
122
#define MUELU_BLOCKEDDIRECTSOLVER_SHORT
123
124
#endif
/* MUELU_BLOCKEDDIRECTSOLVER_DECL_HPP_ */
MueLu_BlockedDirectSolver_fwd.hpp
MueLu_ConfigDefs.hpp
MueLu_DirectSolver_fwd.hpp
MueLu_FactoryBase_fwd.hpp
MueLu_MergedBlockedMatrixFactory_fwd.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_UseShortNames.hpp
MueLu::BlockedDirectSolver::Setup
void Setup(Level ¤tLevel)
Setup routine Call the underlaying Setup routine of the nested direct solver once the input block mat...
Definition
MueLu_BlockedDirectSolver_def.hpp:69
MueLu::BlockedDirectSolver::BlockedDirectSolver
BlockedDirectSolver(const std::string &type="", const Teuchos::ParameterList ¶mList=Teuchos::ParameterList())
Constructor.
Definition
MueLu_BlockedDirectSolver_def.hpp:38
MueLu::BlockedDirectSolver::GetValidParameterList
RCP< const ParameterList > GetValidParameterList() const
Input.
Definition
MueLu_BlockedDirectSolver_def.hpp:45
MueLu::BlockedDirectSolver::DeclareInput
void DeclareInput(Level ¤tLevel) const
Input.
Definition
MueLu_BlockedDirectSolver_def.hpp:54
MueLu::BlockedDirectSolver< Scalar, LocalOrdinal, GlobalOrdinal, Node >::MapExtractorClass
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
Definition
MueLu_BlockedDirectSolver_decl.hpp:47
MueLu::BlockedDirectSolver< Scalar, LocalOrdinal, GlobalOrdinal, Node >::A_
RCP< Matrix > A_
Definition
MueLu_BlockedDirectSolver_decl.hpp:116
MueLu::BlockedDirectSolver< Scalar, LocalOrdinal, GlobalOrdinal, Node >::type_
std::string type_
Definition
MueLu_BlockedDirectSolver_decl.hpp:107
MueLu::BlockedDirectSolver< Scalar, LocalOrdinal, GlobalOrdinal, Node >::s_
RCP< DirectSolver > s_
Definition
MueLu_BlockedDirectSolver_decl.hpp:113
MueLu::BlockedDirectSolver::Apply
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the direct solver. Solves the linear system AX=B using the constructed solver.
Definition
MueLu_BlockedDirectSolver_def.hpp:88
MueLu::BlockedDirectSolver::description
std::string description() const
Return a simple one-line description of this object.
Definition
MueLu_BlockedDirectSolver_def.hpp:143
MueLu::BlockedDirectSolver::print
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
Definition
MueLu_BlockedDirectSolver_def.hpp:151
MueLu::BlockedDirectSolver< Scalar, LocalOrdinal, GlobalOrdinal, Node >::MergedAFact_
RCP< MergedBlockedMatrixFactory > MergedAFact_
Definition
MueLu_BlockedDirectSolver_decl.hpp:110
MueLu::BlockedDirectSolver::getNodeSmootherComplexity
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Definition
MueLu_BlockedDirectSolver_def.hpp:162
MueLu::BlockedDirectSolver::Copy
RCP< SmootherPrototype > Copy() const
Definition
MueLu_BlockedDirectSolver_def.hpp:138
MueLu::BlockedDirectSolver::~BlockedDirectSolver
virtual ~BlockedDirectSolver()
Destructor.
Definition
MueLu_BlockedDirectSolver_decl.hpp:61
MueLu::Level
Class that holds all level-specific information.
Definition
MueLu_Level.hpp:63
MueLu::SmootherPrototype::node_type
Node node_type
Definition
MueLu_SmootherPrototype_decl.hpp:44
MueLu::SmootherPrototype::SmootherPrototype
SmootherPrototype()
@nameConstructors/Destructors.
Definition
MueLu_SmootherPrototype_def.hpp:18
MueLu::SmootherPrototype::global_ordinal_type
GlobalOrdinal global_ordinal_type
Definition
MueLu_SmootherPrototype_decl.hpp:43
MueLu::SmootherPrototype::local_ordinal_type
LocalOrdinal local_ordinal_type
Definition
MueLu_SmootherPrototype_decl.hpp:42
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
MueLu::VerbLevel
int VerbLevel
Definition
MueLu_VerbosityLevel.hpp:76
MueLu::Default
@ Default
Definition
MueLu_VerbosityLevel.hpp:70
src
Smoothers
BlockedSmoothers
MueLu_BlockedDirectSolver_decl.hpp
Generated by
1.17.0