]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move the exception that is thrown when grid reordering fails.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Oct 2016 23:28:23 +0000 (17:28 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 23 Oct 2016 02:18:52 +0000 (20:18 -0600)
In particular, move it to the .h file so that it is visible to user programs.

include/deal.II/grid/grid_reordering.h
source/grid/grid_reordering.cc

index d730a22b678baa56bc796ae9b4f10329e1915585..8885450353c8403049824ab77bc7cee557430075 100644 (file)
 
 DEAL_II_NAMESPACE_OPEN
 
+/**
+ * An exception that is thrown whenever the edges of a mesh are not
+ * orientable.
+ */
+DeclExceptionMsg (ExcMeshNotOrientable,
+                  "The edges of the mesh are not consistently orientable.");
 
 
 /**
index e64ccd956efbb45029bcceb5c2fa4d3a9f54afc7..90fd85d5142b5f929a3a0d9ffdcf56a7e968c056 100644 (file)
@@ -33,9 +33,6 @@ namespace internal
 {
   namespace GridReordering2d
   {
-    DeclExceptionMsg (ExcMeshNotOrientable,
-                      "The edges of the mesh are not consistently orientable.");
-
     /**
      * A simple data structure denoting an edge, i.e., the ordered pair
      * of its vertex indices. This is only used in the is_consistent()
@@ -1188,7 +1185,7 @@ GridReordering<dim,spacedim>::reorder_cells (std::vector<CellData<dim> > &cells,
       {
         internal::GridReordering2d::reorient(cells);
       }
-    catch (const internal::GridReordering2d::ExcMeshNotOrientable &)
+    catch (const ExcMeshNotOrientable &)
       {
         // the mesh is not orientable. this is acceptable if we are in 3d,
         // as class Triangulation knows how to handle this, but it is

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.