<h3>lac</h3>
<ol>
+ <li>
+ <p>
+ Fixed: The BlockMatrixBase::clear() function that is used by all other
+ block matrix type classes had a memory leak in that the memory
+ allocated by all sub-objects was not freed. This is now fixed.
+ <br>
+ (WB 2008/11/05)
+ </p>
+
<li>
<p>
New: The function SparsityTools::reorder_Cuthill_McKee reorders
(WB 2008/10/31)
</p>
-
<li>
<p>
New: The function GridTools::get_face_connectivity_of_cells produces a
// $Id$
// Version: $Name$
//
-// Copyright (C) 2004, 2005, 2006, 2007 by the deal.II authors
+// Copyright (C) 2004, 2005, 2006, 2007, 2008 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
{
for (unsigned int r=0; r<n_block_rows(); ++r)
for (unsigned int c=0; c<n_block_cols(); ++c)
- block(r,c).clear ();
+ {
+ MatrixType *p = this->sub_objects[r][c];
+ this->sub_objects[r][c] = 0;
+ delete p;
+ }
sub_objects.reinit (0,0);
// reset block indices to empty
for (unsigned int c=0; c<this->n_block_cols(); ++c)
{
BlockType *p = new BlockType();
+
+ Assert (this->sub_objects[r][c] == 0,
+ ExcInternalError());
this->sub_objects[r][c] = p;
}
}
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