From 0e84c7dcdd8b1f355516be18a3920cdf1a9ed02a Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 6 Nov 2013 12:40:36 +0000 Subject: [PATCH] Initialize a variable to avoid a warning. git-svn-id: https://svn.dealii.org/trunk@31562 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/sparse_matrix.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/deal.II/include/deal.II/lac/sparse_matrix.h b/deal.II/include/deal.II/lac/sparse_matrix.h index 79b71911ac..46a05ba90e 100644 --- a/deal.II/include/deal.II/lac/sparse_matrix.h +++ b/deal.II/include/deal.II/lac/sparse_matrix.h @@ -1492,7 +1492,9 @@ public: * elements in a row are written in ascending column order. */ template - void print (STREAM &out, bool across=false, bool diagonal_first=true) const; + void print (STREAM &out, + const bool across = false, + const bool diagonal_first = true) const; /** * Print the matrix in the usual format, i.e. as a matrix and not as a list @@ -2474,13 +2476,15 @@ SparseMatrix::end (const size_type r) template template inline -void SparseMatrix::print (STREAM &out, bool across, bool diagonal_first) const +void SparseMatrix::print (STREAM &out, + const bool across, + const bool diagonal_first) const { Assert (cols != 0, ExcNotInitialized()); Assert (val != 0, ExcNotInitialized()); bool hanging_diagonal = false; - number diagonal; + number diagonal = number(); for (size_type i=0; irows; ++i) { -- 2.39.5