]> https://gitweb.dealii.org/ - dealii.git/commitdiff
local index exceptions removed
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 11 Jan 2000 04:38:07 +0000 (04:38 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 11 Jan 2000 04:38:07 +0000 (04:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@2186 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/tensor.h
deal.II/lac/include/lac/vector.h

index 52bb60722f591b963b1a887a3739c258c34c7991..8651b84b76ebdc1e7367f078db18ebb4209dcd19 100644 (file)
@@ -154,12 +154,6 @@ class Tensor
 //     DeclException2(ExcWrongVectorSize, unsigned, int, << "Tensor has " << arg1
 //                << " entries, but vector has size " << arg2);
     
-//                                  /**
-//                                   *  Exception
-//                                   */
-//     DeclException1 (ExcInvalidIndex,
-//                 int,
-//                 << "Invalid index " << arg1);
   private:
                                     /**
                                      * Array of tensors holding the
index bf80c73775527647aa945b2b1266a0f5c49ba9b5..e571b3dffb3b4c4051c83f328f72009084b1953a 100644 (file)
 
 
 /**
- *  Vector of data. 
+ *  Numerical Vector of data.
  *
- * @author Roland Becker, Guido Kanschat, Franz-Theo Suttmeier, revised and extended by Wolfgang Bangerth, documented by Klaus Mampel and Wolfgang Bangerth
+ * As opposed to the array of the C++ standard library called #vector#, this class implements
+ * an element of a vector space suitable for numerical computations.
+ *
+ * @author Guido Kanschat, Franz-Theo Suttmeier, Wolfgang Bangerth
  */
 template <typename Number>
 class Vector {
@@ -413,13 +416,6 @@ class Vector {
                                     /**
                                      * Exception
                                      */
-    DeclException2 (ExcInvalidIndex,
-                   int, int,
-                   << "The given index " << arg1
-                   << " should be less than " << arg2 << ".");
-                                    /**
-                                     * Exception
-                                     */
     DeclException1 (ExcInvalidNumber,
                    int,
                    << "The provided number is invalid here: " << arg1);
@@ -515,7 +511,7 @@ template <typename Number>
 inline
 Number Vector<Number>::operator() (const unsigned int i) const
 {
-  Assert (i<dim, ExcInvalidIndex(i,dim));
+  Assert (i<dim, ExcIndexRange(i,0,dim));
   return val[i];
 }
 
@@ -525,7 +521,7 @@ template <typename Number>
 inline
 Number& Vector<Number>::operator() (const unsigned int i)
 {
-  Assert (i<dim, ExcInvalidIndex(i,dim));
+  Assert (i<dim, ExcIndexRange(i,0,dim));
   return val[i];
 }
 

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.