]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize a member variable. 3384/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 01:27:13 +0000 (19:27 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 01:27:13 +0000 (19:27 -0600)
include/deal.II/lac/matrix_lib.h

index 3cec3a1edf7a3aae318e2119021ca8b4868f2b9d..0ae8ac96a3e3911ad0f198e1b4a2f64fe7681224 100644 (file)
@@ -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 <typename MatrixType>
-  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 <typename MatrixType>
-  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<VectorType> *m;
+
   /**
    * The scaling factor;
    */
@@ -510,7 +516,8 @@ template<typename VectorType>
 inline
 ScaledMatrix<VectorType>::ScaledMatrix()
   :
-  m(0)
+  m(0),
+  factor (0)
 {}
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.