Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
generic_linear_algebra.h
1 // ---------------------------------------------------------------------
2 // @f$Id: generic_linear_algebra.h 31527 2013-11-03 09:58:45Z maier @f$
3 //
4 // Copyright (C) 2008 - 2013 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 #ifndef __deal2__generic_linear_algebra_h
18 #define __deal2__generic_linear_algebra_h
19 
20 #include <deal.II/base/config.h>
21 
22 
23 #include <deal.II/lac/vector.h>
24 #include <deal.II/lac/block_vector.h>
25 #include <deal.II/lac/sparse_matrix.h>
26 #include <deal.II/lac/precondition.h>
28 
29 
30 namespace LinearAlgebraDealII
31 {
32  typedef Vector<double> Vector;
34 
36 
38 
39 }
40 
41 
42 DEAL_II_NAMESPACE_CLOSE
43 
44 
45 #ifdef DEAL_II_USE_PETSC
46 
47 #include <deal.II/lac/block_sparsity_pattern.h>
48 #include <deal.II/lac/petsc_vector.h>
49 #include <deal.II/lac/petsc_block_vector.h>
50 #include <deal.II/lac/petsc_parallel_sparse_matrix.h>
51 #include <deal.II/lac/petsc_sparse_matrix.h>
52 #include <deal.II/lac/petsc_parallel_block_sparse_matrix.h>
53 #include <deal.II/lac/petsc_precondition.h>
54 #include <deal.II/lac/petsc_solver.h>
55 
57 
58 namespace LinearAlgebraPETSc
59 {
60  using namespace dealii;
61 
64 
66 
69 
70  namespace MPI
71  {
72 
76  typedef PETScWrappers::MPI::Vector Vector;
77 
82  typedef PETScWrappers::MPI::BlockVector BlockVector;
83 
87  typedef PETScWrappers::MPI::SparseMatrix SparseMatrix;
88 
94 
95  typedef ::BlockCompressedSimpleSparsityPattern CompressedBlockSparsityPattern;
96 
100  typedef PETScWrappers::PreconditionBoomerAMG PreconditionAMG;
101 
105  typedef PETScWrappers::PreconditionICC PreconditionIC;
106 
110  typedef PETScWrappers::PreconditionILU PreconditionILU;
111 
116 
121 
122  }
123 
124 }
125 DEAL_II_NAMESPACE_CLOSE
126 
127 
128 #endif // DEAL_II_USE_PETSC
129 
130 #ifdef DEAL_II_USE_TRILINOS
131 
132 #include <deal.II/lac/trilinos_vector.h>
133 #include <deal.II/lac/trilinos_block_vector.h>
134 #include <deal.II/lac/trilinos_block_sparse_matrix.h>
135 #include <deal.II/lac/trilinos_sparse_matrix.h>
136 #include <deal.II/lac/trilinos_precondition.h>
137 #include <deal.II/lac/block_sparsity_pattern.h>
138 #include <deal.II/lac/trilinos_solver.h>
139 
141 
142 namespace LinearAlgebraTrilinos
143 {
144  using namespace dealii;
145 
147 
150 
151  namespace MPI
152  {
153 
157  typedef TrilinosWrappers::MPI::Vector Vector;
158 
164 
169 
175 
176  typedef TrilinosWrappers::BlockSparsityPattern CompressedBlockSparsityPattern;
177 
181  typedef TrilinosWrappers::PreconditionAMG PreconditionAMG;
182 
186  typedef TrilinosWrappers::PreconditionIC PreconditionIC;
187 
191  typedef TrilinosWrappers::PreconditionILU PreconditionILU;
192 
197 
202 
203 
204  }
205 
206 }
207 
208 DEAL_II_NAMESPACE_CLOSE
209 
210 
211 #endif // DEAL_II_USE_TRILINOS
212 
213 
214 
215 #endif