From eedafc395c10d8fa1e52b427bd9efe14304d082e Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Fri, 12 Feb 2010 23:12:23 +0000 Subject: [PATCH] superfluous exception removed git-svn-id: https://svn.dealii.org/trunk@20579 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/block_sparse_matrix.h | 11 +---------- .../lac/include/lac/block_sparse_matrix.templates.h | 8 +++----- 2 files changed, 4 insertions(+), 15 deletions(-) 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 -- 2.39.5