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

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

index 85fe6e212a049ba6e38c05d1cfe3089346357cf6..aef1afca0a0054e1722fc1b2b83b89386df8ed4b 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -340,20 +340,6 @@ class Function : public FunctionTime,
                                      * value.
                                      */
     unsigned int memory_consumption () const;
-
-                                    /** @addtogroup Exceptions
-                                     * @{ */
-
-                                     /**
-                                      * Number of components does not match.
-                                      */
-    DeclException2 (ExcNumberOfComponents,
-                    int, int,
-                    << "You can only assign function objects with the same "
-                    << "number of components. However, here the left operand "
-                    << "has " << arg1 << " components, and the right operand "
-                    << arg2 << " components.");
-                                    //@}
 };
 
 
index d91b179eb1c4a3117efde2043fabea5048be1fdb..e0c981ee3fea1fe57905e751ed83e9155cf559bb 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -51,8 +51,7 @@ Function<dim>::~Function ()
 template <int dim>
 Function<dim> & Function<dim>::operator= (const Function &f)
 {
-  Assert (n_components == f.n_components,
-          ExcNumberOfComponents(n_components,f.n_components));
+  AssertDimension (n_components, f.n_components);
   return *this;
 }
 

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.