From: Wolfgang Bangerth Date: Thu, 3 Jun 2004 04:27:53 +0000 (+0000) Subject: Fix small problem where clear() didn't do what it was supposed to do. X-Git-Tag: v8.0.0~15091 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7458364c57d185337f99a1dbf81e283dc642dc29;p=dealii.git Fix small problem where clear() didn't do what it was supposed to do. git-svn-id: https://svn.dealii.org/trunk@9368 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/news/c-5.0.html b/deal.II/doc/news/c-5.0.html index 671e5c190c..15d2422e37 100644 --- a/deal.II/doc/news/c-5.0.html +++ b/deal.II/doc/news/c-5.0.html @@ -86,6 +86,16 @@ inconvenience this causes.

lac

    +
  1. + Fixed: BlockSparseMatrix::clear() did not + do what it was supposed to do: it emptied the individual blocks and + removed them, but it still kept the number of blocks + unchanged. Subsequent accesses to these blocks, or to their information + yielded segmentation faults. +
    + (WB 2004/06/02) +

    +
  2. New: Block matrices and vectors have been factored into abstract base classes and concrete implementation classes. While the previous classes diff --git a/deal.II/lac/include/lac/block_matrix_base.h b/deal.II/lac/include/lac/block_matrix_base.h index 2fe4402d2b..99b49b3d64 100644 --- a/deal.II/lac/include/lac/block_matrix_base.h +++ b/deal.II/lac/include/lac/block_matrix_base.h @@ -1076,7 +1076,8 @@ BlockMatrixBase::clear () for (unsigned int r=0; r