]> https://gitweb.dealii.org/ - dealii.git/commitdiff
two exotic exceptions replaced
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 23 Mar 2005 00:48:46 +0000 (00:48 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 23 Mar 2005 00:48:46 +0000 (00:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@10207 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/function_lib.h
deal.II/base/source/function_lib.cc

index 98176eeb1a350e8a001608ad9e7a2e157bb2b20e..c2ba84eef26c9810cca22ef91a5a0c3e6e81dc67 100644 (file)
@@ -1,15 +1,15 @@
-//----------------------------  function_lib.h  ---------------------------
+//---------------------------------------------------------------------------
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal authors
+//    Copyright (C) 1998 - 2005 by the deal authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
 //    to the file deal.II/doc/license.html for the  text  and
 //    further information on this license.
 //
-//----------------------------  function_lib.h  ---------------------------
+//---------------------------------------------------------------------------
 #ifndef __deal2__function_lib_h
 #define __deal2__function_lib_h
 
@@ -751,15 +751,6 @@ namespace Functions
                                        */
       virtual double laplacian (const Point<dim>   &p,
                                const unsigned int  component = 0) const;
-
-                                      /** @addtogroup Exceptions
-                                       * @{ */
-      
-                                      /**
-                                       * Exception
-                                       */
-      DeclException0 (ExcInvalidArraySize);
-                                      //@}
     private:
                                       /**
                                        * Stored Fourier coefficients
@@ -821,14 +812,6 @@ namespace Functions
       virtual double laplacian (const Point<dim>   &p,
                                const unsigned int  component = 0) const;
 
-                                      /** @addtogroup Exceptions
-                                       * @{ */
-
-                                      /**
-                                       * Exception
-                                       */
-      DeclException0 (ExcInvalidArraySize);
-                                      //@}
     private:
                                       /**
                                        * Stored Fourier coefficients
index c6879c456375d3bee5b92eefd9215c285b3c9134..bf66b4c27f9c157875083ffd2630a20cd69dbf54 100644 (file)
@@ -1,15 +1,15 @@
-//----------------------------  function_lib.cc  ---------------------------
+//---------------------------------------------------------------------------
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal authors
+//    Copyright (C) 1998 - 2005 by the deal authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
 //    to the file deal.II/doc/license.html for the  text  and
 //    further information on this license.
 //
-//----------------------------  function_lib.cc  ---------------------------
+//---------------------------------------------------------------------------
 
 
 #include <base/tensor.h>
@@ -1330,9 +1330,10 @@ namespace Functions
                   fourier_coefficients (fourier_coefficients),
                   weights (weights)
   {
-    Assert (fourier_coefficients.size() > 0, ExcInvalidArraySize());
+    Assert (fourier_coefficients.size() > 0, ExcZero());
     Assert (fourier_coefficients.size() == weights.size(),
-           ExcInvalidArraySize());
+           ExcDimensionMismatch(fourier_coefficients.size(),
+                                weights.size()));
   }
   
   
@@ -1401,9 +1402,10 @@ namespace Functions
                     fourier_coefficients (fourier_coefficients),
                     weights (weights)
   {
-    Assert (fourier_coefficients.size() > 0, ExcInvalidArraySize());
+    Assert (fourier_coefficients.size() > 0, ExcZero());
     Assert (fourier_coefficients.size() == weights.size(),
-           ExcInvalidArraySize());
+           ExcDimensionMismatch(fourier_coefficients.size(),
+                                weights.size()));
   }
   
   

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.