Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
sparse_mic.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 2019 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.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_sparse_mic_h
17 #define dealii_sparse_mic_h
18 
19 #include <deal.II/base/config.h>
20 
23 
25 
48 template <typename number>
49 class SparseMIC : public SparseLUDecomposition<number>
50 {
51 public:
56 
61  SparseMIC();
62 
66  virtual ~SparseMIC() override;
67 
72  virtual void
73  clear() override;
74 
80 
98  template <typename somenumber>
99  void
101  const AdditionalData & parameters = AdditionalData());
102 
109  template <typename somenumber>
110  void
111  vmult(Vector<somenumber> &dst, const Vector<somenumber> &src) const;
112 
122  template <typename somenumber>
123  void
124  Tvmult(Vector<somenumber> &dst, const Vector<somenumber> &src) const;
125 
130  std::size_t
131  memory_consumption() const override;
132 
146  double,
147  << "The strengthening parameter " << arg1
148  << " is not greater or equal than zero!");
153  int,
154  double,
155  << "The diagonal element (" << arg1 << "," << arg1 << ") is "
156  << arg2 << ", but must be positive");
157 
159 private:
163  std::vector<number> diag;
164 
168  std::vector<number> inv_diag;
169 
174  std::vector<number> inner_sums;
175 
179  number
180  get_rowsum(const size_type row) const;
181 };
182 
186 
187 #endif // dealii_
SparseMIC::ExcDecompositionNotStable
static ::ExceptionBase & ExcDecompositionNotStable(int arg1, double arg2)
sparse_matrix.h
SparseMIC
Definition: sparse_mic.h:49
SparseMIC::AdditionalData
typename SparseLUDecomposition< number >::AdditionalData AdditionalData
Definition: sparse_mic.h:79
SparseMIC::inner_sums
std::vector< number > inner_sums
Definition: sparse_mic.h:174
SparseMatrix
Definition: sparse_matrix.h:497
SparseLUDecomposition::AdditionalData
Definition: sparse_decomposition.h:144
SparseMIC::memory_consumption
std::size_t memory_consumption() const override
SparseMIC::SparseMIC
SparseMIC()
sparse_decomposition.h
SparseLUDecomposition
Definition: sparse_decomposition.h:110
SparseMIC::vmult
void vmult(Vector< somenumber > &dst, const Vector< somenumber > &src) const
types::global_dof_index
unsigned int global_dof_index
Definition: types.h:76
SparseMIC::clear
virtual void clear() override
SparseLUDecomposition::size_type
typename SparseMatrix< number >::size_type size_type
Definition: sparse_decomposition.h:126
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
SparseMIC::Tvmult
void Tvmult(Vector< somenumber > &dst, const Vector< somenumber > &src) const
SparseMIC::ExcInvalidStrengthening
static ::ExceptionBase & ExcInvalidStrengthening(double arg1)
LAPACKSupport::matrix
@ matrix
Contents is actually a matrix.
Definition: lapack_support.h:60
DeclException1
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:518
SparseMIC::inv_diag
std::vector< number > inv_diag
Definition: sparse_mic.h:168
SparseMIC::~SparseMIC
virtual ~SparseMIC() override
DeclException0
#define DeclException0(Exception0)
Definition: exceptions.h:473
SparseMIC::initialize
void initialize(const SparseMatrix< somenumber > &matrix, const AdditionalData &parameters=AdditionalData())
config.h
SparseMIC::get_rowsum
number get_rowsum(const size_type row) const
SparseMIC::diag
std::vector< number > diag
Definition: sparse_mic.h:163
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
SparseMIC::ExcStrengthenDiagonalTooSmall
static ::ExceptionBase & ExcStrengthenDiagonalTooSmall()
DeclException2
#define DeclException2(Exception2, type1, type2, outsequence)
Definition: exceptions.h:541