From 82508f5d39a0f4759481cf23d8b660330556287d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 2 Nov 2016 19:27:13 -0600 Subject: [PATCH] Initialize a member variable. --- include/deal.II/lac/matrix_lib.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) 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) {} -- 2.39.5