]> https://gitweb.dealii.org/ - dealii.git/commitdiff
superfluous exception removed
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 12 Feb 2010 23:12:23 +0000 (23:12 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 12 Feb 2010 23:12:23 +0000 (23:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@20579 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_sparse_matrix.h
deal.II/lac/include/lac/block_sparse_matrix.templates.h

index 205441ecf9c31c287a52be1574bea13ea55a45d3..d30ebee959040eb811b195fd5d51f215d754399b 100644 (file)
@@ -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<SparseMatrix<number> >
                                      * of this object.
                                      */
     unsigned int memory_consumption () const;
-
-                                    /** @addtogroup Exceptions
-                                     * @{ */
-
-                                     /**
-                                      * Exception
-                                      */
-    DeclException0 (ExcBlockDimensionMismatch);
-                                    //@}
   private:
                                     /**
                                      * Pointer to the block sparsity
index 078a7c10523564cfa5a3ff20af057660f90ad614..99cccdb352859c1c1ee3a5bb7a2ccd5b08839379 100644 (file)
@@ -52,11 +52,9 @@ BlockSparseMatrix<number> &
 BlockSparseMatrix<number>::
 operator = (const BlockSparseMatrix<number> &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

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


Typeset in Trocchi and Trocchi Bold Sans Serif.