From 6bf8a43c6869f8ea020cea4dda476d36de4e99cc Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 6 Jan 2010 10:05:29 +0000 Subject: [PATCH] Fix one more problem. git-svn-id: https://svn.dealii.org/trunk@20305 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/news/changes.h | 10 ++++++++++ deal.II/lac/source/block_sparsity_pattern.cc | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/deal.II/doc/news/changes.h b/deal.II/doc/news/changes.h index 365cbd11db..446b0ef498 100644 --- a/deal.II/doc/news/changes.h +++ b/deal.II/doc/news/changes.h @@ -376,6 +376,16 @@ inconvenience this causes.

lac

    +
  1. +

    + Fixed: BlockSparsityPattern::copy_from accidentally only copied + n_block_rows times n_block_rows blocks, instead of n_block_rows + times n_block_cols. This is now fixed. +

    +
    + (WB 2010/01/06) +
  2. +
  3. Fixed: SparsityPattern::copy_from crashed whenever a compressed sparsity diff --git a/deal.II/lac/source/block_sparsity_pattern.cc b/deal.II/lac/source/block_sparsity_pattern.cc index 72a4b26575..213c4bb587 100644 --- a/deal.II/lac/source/block_sparsity_pattern.cc +++ b/deal.II/lac/source/block_sparsity_pattern.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -390,8 +390,8 @@ BlockSparsityPattern::copy_from (const BlockCompressedSparsityPattern &csp) reinit (csp.n_block_rows(), csp.n_block_cols()); // copy over blocks - for (unsigned int i=0; i