]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Undo change 20579 since it didn't compile.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 13 Feb 2010 01:20:33 +0000 (01:20 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 13 Feb 2010 01:20:33 +0000 (01:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@20586 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 d30ebee959040eb811b195fd5d51f215d754399b..205441ecf9c31c287a52be1574bea13ea55a45d3 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 by the deal.II authors
+//    Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -403,6 +403,15 @@ 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 99cccdb352859c1c1ee3a5bb7a2ccd5b08839379..078a7c10523564cfa5a3ff20af057660f90ad614 100644 (file)
@@ -52,9 +52,11 @@ BlockSparseMatrix<number> &
 BlockSparseMatrix<number>::
 operator = (const BlockSparseMatrix<number> &m) 
 {
-  AssertDimension (this->row_block_indices, m.row_block_indices);
-  AssertDimension (this->column_block_indices, m.column_block_indices);
-  
+  Assert (this->row_block_indices == m.row_block_indices,
+          ExcBlockDimensionMismatch());
+  Assert (this->column_block_indices == m.column_block_indices,
+          ExcBlockDimensionMismatch());
+
                                    // 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.