From: kanschat Date: Fri, 12 Feb 2010 23:12:23 +0000 (+0000) Subject: superfluous exception removed X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=397c28ee38780a9672d6116934d6b84e3dfda0ec;p=dealii-svn.git superfluous exception removed git-svn-id: https://svn.dealii.org/trunk@20579 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/block_sparse_matrix.h b/deal.II/lac/include/lac/block_sparse_matrix.h index 205441ecf9..d30ebee959 100644 --- a/deal.II/lac/include/lac/block_sparse_matrix.h +++ b/deal.II/lac/include/lac/block_sparse_matrix.h @@ -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 @@ -403,15 +403,6 @@ class BlockSparseMatrix : public BlockMatrixBase > * of this object. */ unsigned int memory_consumption () const; - - /** @addtogroup Exceptions - * @{ */ - - /** - * Exception - */ - DeclException0 (ExcBlockDimensionMismatch); - //@} private: /** * Pointer to the block sparsity diff --git a/deal.II/lac/include/lac/block_sparse_matrix.templates.h b/deal.II/lac/include/lac/block_sparse_matrix.templates.h index 078a7c1052..99cccdb352 100644 --- a/deal.II/lac/include/lac/block_sparse_matrix.templates.h +++ b/deal.II/lac/include/lac/block_sparse_matrix.templates.h @@ -52,11 +52,9 @@ BlockSparseMatrix & BlockSparseMatrix:: operator = (const BlockSparseMatrix &m) { - Assert (this->row_block_indices == m.row_block_indices, - ExcBlockDimensionMismatch()); - Assert (this->column_block_indices == m.column_block_indices, - ExcBlockDimensionMismatch()); - + AssertDimension (this->row_block_indices, m.row_block_indices); + AssertDimension (this->column_block_indices, m.column_block_indices); + // this operator does not do // anything except than checking // whether the base objects want to