From: Wolfgang Bangerth Date: Thu, 3 Nov 2016 01:27:13 +0000 (-0600) Subject: Initialize a member variable. X-Git-Tag: v8.5.0-rc1~500^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82508f5d39a0f4759481cf23d8b660330556287d;p=dealii.git Initialize a member variable. --- diff --git a/include/deal.II/lac/matrix_lib.h b/include/deal.II/lac/matrix_lib.h index 3cec3a1edf..0ae8ac96a3 100644 --- a/include/deal.II/lac/matrix_lib.h +++ b/include/deal.II/lac/matrix_lib.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. // @@ -167,17 +167,20 @@ public: * Constructor with initialization. */ template - ScaledMatrix (const MatrixType &M, const double factor); + ScaledMatrix (const MatrixType &M, + const double factor); /** * Destructor */ ~ScaledMatrix (); + /** * Initialize for use with a new matrix and factor. */ template - void initialize (const MatrixType &M, const double factor); + void initialize (const MatrixType &M, + const double factor); /** * Reset the object to its original state. @@ -187,18 +190,21 @@ public: /** * Matrix-vector product. */ - void vmult (VectorType &w, const VectorType &v) const; + void vmult (VectorType &w, + const VectorType &v) const; /** * Transposed matrix-vector product. */ - void Tvmult (VectorType &w, const VectorType &v) const; + void Tvmult (VectorType &w, + const VectorType &v) const; private: /** * The matrix. */ PointerMatrixBase *m; + /** * The scaling factor; */ @@ -510,7 +516,8 @@ template inline ScaledMatrix::ScaledMatrix() : - m(0) + m(0), + factor (0) {}