]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove hp::DoFHandler::ExcInvalidTriangulation 5283/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 20 Oct 2017 18:57:22 +0000 (14:57 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sat, 21 Oct 2017 20:41:17 +0000 (16:41 -0400)
for #610

include/deal.II/hp/dof_handler.h
source/hp/dof_handler.cc

index db1023ee10c3be58184f5a4c4774b6ee74e0681d..c9ad925335f6d00949e82a140b2fc871a2c43b4e 100644 (file)
@@ -679,10 +679,6 @@ namespace hp
 
     BOOST_SERIALIZATION_SPLIT_MEMBER()
 
-    /**
-     * Exception
-     */
-    DeclException0 (ExcInvalidTriangulation);
     /**
      * Exception
      */
index d6d9b57e15dfbd5b67dcfe529c2e477481eb4c57..7a25290dfed2c890a21565f24f04f7510f50f35b 100644 (file)
@@ -606,8 +606,7 @@ namespace internal
           Assert (dof_handler.finite_elements->size() > 0,
                   typename BaseClass::ExcNoFESelected());
           Assert (dof_handler.tria->n_levels() > 0,
-                  typename
-                  BaseClass::ExcInvalidTriangulation());
+                  ExcMessage("The current Triangulation must not be empty."));
           Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (),
                   ExcInternalError ());
 
@@ -633,7 +632,7 @@ namespace internal
           Assert (dof_handler.finite_elements->size() > 0,
                   typename BaseClass::ExcNoFESelected());
           Assert (dof_handler.tria->n_levels() > 0,
-                  typename BaseClass::ExcInvalidTriangulation());
+                  ExcMessage("The current Triangulation must not be empty."));
           Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (),
                   ExcInternalError ());
 
@@ -663,7 +662,7 @@ namespace internal
           Assert (dof_handler.finite_elements->size() > 0,
                   typename BaseClass::ExcNoFESelected());
           Assert (dof_handler.tria->n_levels() > 0,
-                  typename BaseClass::ExcInvalidTriangulation());
+                  ExcMessage("The current Triangulation must not be empty."));
           Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (),
                   ExcInternalError ());
 

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.