Reference documentation for deal.II version 8.5.1
deal.II
lac
generic_linear_algebra.h
1
// ---------------------------------------------------------------------
2
//
3
// Copyright (C) 2008 - 2015 by the deal.II authors
4
//
5
// This file is part of the deal.II library.
6
//
7
// The deal.II library is free software; you can use it, redistribute
8
// it, and/or modify it under the terms of the GNU Lesser General
9
// Public License as published by the Free Software Foundation; either
10
// version 2.1 of the License, or (at your option) any later version.
11
// The full text of the license can be found in the file LICENSE at
12
// the top level of the deal.II distribution.
13
//
14
// ---------------------------------------------------------------------
15
16
#ifndef dealii__generic_linear_algebra_h
17
#define dealii__generic_linear_algebra_h
18
19
#include <deal.II/base/config.h>
20
21
22
#include <deal.II/lac/vector.h>
23
#include <deal.II/lac/block_vector.h>
24
#include <deal.II/lac/sparse_matrix.h>
25
#include <deal.II/lac/precondition.h>
26
27
28
DEAL_II_NAMESPACE_OPEN
29
30
37
namespace
LinearAlgebraDealII
38
{
39
typedef
Vector<double>
Vector
;
40
typedef
BlockVector<double>
BlockVector
;
41
42
typedef
SparseMatrix<double>
SparseMatrix
;
43
44
typedef
PreconditionSSOR<SparseMatrix >
PreconditionSSOR
;
45
}
46
47
48
DEAL_II_NAMESPACE_CLOSE
49
50
51
#ifdef DEAL_II_WITH_PETSC
52
53
#include <deal.II/lac/block_sparsity_pattern.h>
54
#include <deal.II/lac/petsc_parallel_sparse_matrix.h>
55
#include <deal.II/lac/petsc_parallel_block_sparse_matrix.h>
56
#include <deal.II/lac/petsc_precondition.h>
57
#include <deal.II/lac/petsc_solver.h>
58
59
DEAL_II_NAMESPACE_OPEN
60
67
namespace
LinearAlgebraPETSc
68
{
69
using namespace
dealii
;
70
71
typedef
PETScWrappers::SolverCG
SolverCG
;
72
typedef
PETScWrappers::SolverGMRES
SolverGMRES
;
73
78
namespace
MPI
79
{
83
typedef
PETScWrappers::MPI::Vector
Vector
;
84
89
typedef
PETScWrappers::MPI::BlockVector
BlockVector
;
90
94
typedef
PETScWrappers::MPI::SparseMatrix
SparseMatrix
;
95
100
typedef
PETScWrappers::MPI::BlockSparseMatrix
BlockSparseMatrix
;
101
102
typedef ::BlockDynamicSparsityPattern
BlockCompressedSparsityPattern
;
103
107
typedef
PETScWrappers::PreconditionBoomerAMG
PreconditionAMG
;
108
112
typedef
PETScWrappers::PreconditionICC
PreconditionIC
;
113
117
typedef
PETScWrappers::PreconditionILU
PreconditionILU
;
118
122
typedef
PETScWrappers::PreconditionJacobi
PreconditionJacobi
;
123
127
typedef
PETScWrappers::PreconditionSSOR
PreconditionSSOR
;
128
129
}
130
131
}
132
DEAL_II_NAMESPACE_CLOSE
133
134
135
#endif // DEAL_II_WITH_PETSC
136
137
#ifdef DEAL_II_WITH_TRILINOS
138
139
#include <deal.II/lac/trilinos_block_sparse_matrix.h>
140
#include <deal.II/lac/trilinos_sparse_matrix.h>
141
#include <deal.II/lac/trilinos_precondition.h>
142
#include <deal.II/lac/block_sparsity_pattern.h>
143
#include <deal.II/lac/trilinos_solver.h>
144
145
DEAL_II_NAMESPACE_OPEN
146
153
namespace
LinearAlgebraTrilinos
154
{
155
using namespace
dealii
;
156
157
typedef
TrilinosWrappers::SolverCG
SolverCG
;
158
typedef
TrilinosWrappers::SolverGMRES
SolverGMRES
;
159
164
namespace
MPI
165
{
169
typedef
TrilinosWrappers::MPI::Vector
Vector
;
170
175
typedef
TrilinosWrappers::MPI::BlockVector
BlockVector
;
176
180
typedef
TrilinosWrappers::SparseMatrix
SparseMatrix
;
181
186
typedef
TrilinosWrappers::BlockSparseMatrix
BlockSparseMatrix
;
187
188
typedef
TrilinosWrappers::BlockSparsityPattern
BlockCompressedSparsityPattern
;
189
193
typedef
TrilinosWrappers::PreconditionAMG
PreconditionAMG
;
194
198
typedef
TrilinosWrappers::PreconditionIC
PreconditionIC
;
199
203
typedef
TrilinosWrappers::PreconditionILU
PreconditionILU
;
204
208
typedef
TrilinosWrappers::PreconditionJacobi
PreconditionJacobi
;
209
213
typedef
TrilinosWrappers::PreconditionSSOR
PreconditionSSOR
;
214
215
216
}
217
218
}
219
220
DEAL_II_NAMESPACE_CLOSE
221
222
223
#endif // DEAL_II_WITH_TRILINOS
224
225
226
227
#endif
PETScWrappers::MPI::BlockVector
Definition:
petsc_parallel_block_vector.h:62
TrilinosWrappers::PreconditionSSOR
Definition:
trilinos_precondition.h:346
Vector< double >
TrilinosWrappers::BlockSparsityPattern
Definition:
block_sparsity_pattern.h:597
TrilinosWrappers::MPI::Vector
Definition:
trilinos_vector.h:254
LinearAlgebraPETSc
Definition:
generic_linear_algebra.h:67
PETScWrappers::MPI::SparseMatrix
Definition:
petsc_parallel_sparse_matrix.h:119
BlockDynamicSparsityPattern
Definition:
block_sparsity_pattern.h:482
LinearAlgebraDealII
Definition:
generic_linear_algebra.h:37
PETScWrappers::PreconditionICC
Definition:
petsc_precondition.h:453
PETScWrappers::PreconditionBoomerAMG
Definition:
petsc_precondition.h:654
LinearAlgebraDealII::SparseMatrix
SparseMatrix< double > SparseMatrix
Definition:
generic_linear_algebra.h:42
PETScWrappers::SolverCG
Definition:
petsc_solver.h:385
TrilinosWrappers::PreconditionILU
Definition:
trilinos_precondition.h:973
PETScWrappers::PreconditionJacobi
Definition:
petsc_precondition.h:130
TrilinosWrappers::MPI::BlockVector
Definition:
trilinos_parallel_block_vector.h:71
PreconditionSSOR
Definition:
precondition.h:621
SparseMatrix
Definition:
constraint_matrix.h:41
TrilinosWrappers::SparseMatrix
Definition:
trilinos_sparse_matrix.h:498
TrilinosWrappers::PreconditionJacobi
Definition:
trilinos_precondition.h:263
BlockVector
Definition:
block_linear_operator.h:39
PETScWrappers::PreconditionILU
Definition:
petsc_precondition.h:513
TrilinosWrappers::PreconditionAMG
Definition:
trilinos_precondition.h:1354
LinearAlgebraDealII::BlockVector
BlockVector< double > BlockVector
Definition:
generic_linear_algebra.h:40
PETScWrappers::MPI::BlockSparseMatrix
Definition:
petsc_parallel_block_sparse_matrix.h:68
LinearAlgebraTrilinos
Definition:
generic_linear_algebra.h:153
TrilinosWrappers::BlockSparseMatrix
Definition:
trilinos_block_sparse_matrix.h:71
LinearAlgebraDealII::Vector
Vector< double > Vector
Definition:
generic_linear_algebra.h:39
dealii
Definition:
namespace_dealii.h:25
TrilinosWrappers::SolverCG
Definition:
trilinos_solver.h:364
PETScWrappers::PreconditionSSOR
Definition:
petsc_precondition.h:330
TrilinosWrappers::SolverGMRES
Definition:
trilinos_solver.h:457
PETScWrappers::MPI::Vector
Definition:
petsc_parallel_vector.h:157
PETScWrappers::SolverGMRES
Definition:
petsc_solver.h:485
TrilinosWrappers::PreconditionIC
Definition:
trilinos_precondition.h:869
Generated by
1.8.14