]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize a member variable. 3386/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 01:45:38 +0000 (19:45 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 01:45:38 +0000 (19:45 -0600)
Also add a piece to the documentation of a member function.

include/deal.II/lac/sparse_decomposition.h
include/deal.II/lac/sparse_decomposition.templates.h

index 86f988fd1926020c9e56dc64a2915e03d354d47b..2e9e5567c3cc3ca80360dd36ecb22bec86ccff13 100644 (file)
@@ -295,7 +295,8 @@ protected:
    * elements <code>rowsum</code>.
    *
    * @note The default implementation in SparseLUDecomposition returns
-   * <code>strengthen_diagonal</code>'s value.
+   * <code>strengthen_diagonal</code>'s value. This variable is set to
+   * a nonzero value in several of the derived classes.
    */
   virtual number get_strengthen_diagonal(const number rowsum, const size_type row) const;
 
@@ -405,11 +406,12 @@ SparseLUDecomposition<number>::Tvmult_add (OutVector &dst,
 
 
 template <typename number>
-SparseLUDecomposition<number>::AdditionalData::AdditionalData (
-  const double strengthen_diag,
-  const unsigned int extra_off_diag,
-  const bool use_prev_sparsity,
-  const SparsityPattern *use_this_spars):
+SparseLUDecomposition<number>::
+AdditionalData::AdditionalData (const double strengthen_diag,
+                                const unsigned int extra_off_diag,
+                                const bool use_prev_sparsity,
+                                const SparsityPattern *use_this_spars)
+  :
   strengthen_diagonal(strengthen_diag),
   extra_off_diagonals(extra_off_diag),
   use_previous_sparsity(use_prev_sparsity),
index 3f871ad8e671d3ffb9afa7aa19f38777bd92273f..956cfed739945abc2417cb30da66bd2fa69a0899 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2002 - 2015 by the deal.II authors
+// Copyright (C) 2002 - 2016 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -31,6 +31,7 @@ template<typename number>
 SparseLUDecomposition<number>::SparseLUDecomposition()
   :
   SparseMatrix<number>(),
+  strengthen_diagonal (0),
   own_sparsity(0)
 {}
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.