]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
It looks like block matrices of all type were not freeing memory at exit. Fixed.
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Aug 2013 22:42:38 +0000 (22:42 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Aug 2013 22:42:38 +0000 (22:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@30234 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/block_matrix_base.h

index 56d0067a63f3f2706498545e2bc486419ca6c0ee..92b33fa9523be60d8ce409d92e993c7636f8b693 100644 (file)
@@ -412,6 +412,11 @@ public:
    */
   BlockMatrixBase ();
 
+  /**
+   * Destructor.
+   */
+  ~BlockMatrixBase ();
+
   /**
    * Copy the given matrix to this
    * one.  The operation throws an
@@ -1736,6 +1741,12 @@ inline
 BlockMatrixBase<MatrixType>::BlockMatrixBase ()
 {}
 
+template <typename MatrixType>
+inline
+BlockMatrixBase<MatrixType>::~BlockMatrixBase ()
+{
+  clear ();
+}
 
 
 template <class MatrixType>

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.