]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
exception replaced
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 Mar 2003 09:58:27 +0000 (09:58 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 Mar 2003 09:58:27 +0000 (09:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@7309 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 2038726c43901bb654c59aae12aaeb2ed29748c7..3aa562bcdf29eeb9d376ecab729fc67251fac8d4 100644 (file)
@@ -668,10 +668,6 @@ class BlockSparseMatrix : public Subscriptor
                                      */
     DeclException0 (ExcMatrixNotBlockSquare);
 
-                                    /**
-                                     * Exception.
-                                     */
-    DeclException0 (ExcIncompatibleObjects);
     
   private:
                                     /**
index 2bb7eaef376c3ebfe178f6020d08dd7be67cdcfe..9673f891f02eb5978754b5b9124a16334bea363e 100644 (file)
@@ -1,4 +1,4 @@
-//----------------------------  block_sparse_matrix.templates.h  ---------------------------
+//-------------------------------------------------------------------------------
 //    $Id$
 //    Version: $Name$
 //
@@ -9,7 +9,7 @@
 //    to the file deal.II/doc/license.html for the  text  and
 //    further information on this license.
 //
-//----------------------------  block_sparse_matrix.templates.h  ---------------------------
+//-------------------------------------------------------------------------------
 #ifndef __deal2__block_sparse_matrix_templates_h
 #define __deal2__block_sparse_matrix_templates_h
 
@@ -61,8 +61,8 @@ BlockSparseMatrix<number> &
 BlockSparseMatrix<number>::
 operator = (const BlockSparseMatrix<number> &m) 
 {
-  Assert (rows == m.rows, ExcIncompatibleObjects());
-  Assert (columns == m.columns, ExcIncompatibleObjects());
+  Assert (rows == m.rows, ExcDimensionMismatch(rows, m.rows));
+  Assert (columns == m.columns, ExcDimensionMismatch(columns, m.columns));
                                   // 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.