From 1d3a8727d8436863a12adf2293d1629fd7268bf7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 2 Nov 2016 19:45:38 -0600 Subject: [PATCH] Initialize a member variable. Also add a piece to the documentation of a member function. --- include/deal.II/lac/sparse_decomposition.h | 14 ++++++++------ .../deal.II/lac/sparse_decomposition.templates.h | 3 ++- 2 files changed, 10 insertions(+), 7 deletions(-) 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) {} -- 2.39.5