]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust error messages in the VectorTools namespace.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 15 Mar 2015 06:57:52 +0000 (01:57 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 17 Mar 2015 23:27:47 +0000 (18:27 -0500)
include/deal.II/numerics/vector_tools.h
include/deal.II/numerics/vector_tools.templates.h

index 3264cd2b833ff58a9accb6d38ea94e0c8b6a329b..1aadb5d4367d4bd44efc9e252f79fb32f248918e 100644 (file)
@@ -2190,20 +2190,14 @@ namespace VectorTools
   //@}
 
 
-  /**
-   * Exception.
-   */
-  DeclException0(ExcInvalidMaterialIndicator);
-
-  /**
-   * Exception
-   */
-  DeclException0 (ExcInvalidBoundaryIndicator);
-
   /**
    * Exception
    */
-  DeclException0 (ExcNonInterpolatingFE);
+  DeclExceptionMsg (ExcNonInterpolatingFE,
+                    "You are attempting an operation that requires the "
+                    "finite element involved to be 'interpolating', i.e., "
+                    "it needs to have support points. The finite element "
+                    "you are using here does not appear to have those.");
 
   /**
    * Exception
index 22f94a1d525aeada9699a0405f2111cdc40274a3..8f0492ec333aec933d83316b6c2ab11c3f3149a0 100644 (file)
@@ -352,7 +352,8 @@ namespace VectorTools
       return;
 
     Assert( function_map.find(numbers::invalid_material_id) == function_map.end(),
-            ExcInvalidMaterialIndicator() );
+            ExcMessage("You cannot specify the invalid material indicator "
+                       "in your function map."));
 
     for ( typename std::map< types::material_id, const Function<DH::space_dimension>* >::const_iterator
           iter  = function_map.begin();
@@ -1740,7 +1741,8 @@ namespace VectorTools
         return;
 
       Assert (function_map.find(numbers::internal_face_boundary_id) == function_map.end(),
-              ExcInvalidBoundaryIndicator());
+              ExcMessage("You cannot specify the special boundary indicator "
+                         "for interior faces in your function map."));
 
       const unsigned int        n_components = DoFTools::n_components(dof);
       const bool                fe_is_system = (n_components != 1);

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.