From: Wolfgang Bangerth Date: Thu, 3 Nov 2016 01:45:38 +0000 (-0600) Subject: Initialize a member variable. X-Git-Tag: v8.5.0-rc1~502^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d3a8727d8436863a12adf2293d1629fd7268bf7;p=dealii.git Initialize a member variable. Also add a piece to the documentation of a member function. --- diff --git a/include/deal.II/lac/sparse_decomposition.h b/include/deal.II/lac/sparse_decomposition.h index 86f988fd19..2e9e5567c3 100644 --- a/include/deal.II/lac/sparse_decomposition.h +++ b/include/deal.II/lac/sparse_decomposition.h @@ -295,7 +295,8 @@ protected: * elements rowsum. * * @note The default implementation in SparseLUDecomposition returns - * strengthen_diagonal's value. + * strengthen_diagonal'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::Tvmult_add (OutVector &dst, template -SparseLUDecomposition::AdditionalData::AdditionalData ( - const double strengthen_diag, - const unsigned int extra_off_diag, - const bool use_prev_sparsity, - const SparsityPattern *use_this_spars): +SparseLUDecomposition:: +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), diff --git a/include/deal.II/lac/sparse_decomposition.templates.h b/include/deal.II/lac/sparse_decomposition.templates.h index 3f871ad8e6..956cfed739 100644 --- a/include/deal.II/lac/sparse_decomposition.templates.h +++ b/include/deal.II/lac/sparse_decomposition.templates.h @@ -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 SparseLUDecomposition::SparseLUDecomposition() : SparseMatrix(), + strengthen_diagonal (0), own_sparsity(0) {}