From 21855e8b8773bd128b6e2968dd9934e5c7dd763e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 18 Oct 2016 17:28:23 -0600 Subject: [PATCH] Move the exception that is thrown when grid reordering fails. In particular, move it to the .h file so that it is visible to user programs. --- include/deal.II/grid/grid_reordering.h | 6 ++++++ source/grid/grid_reordering.cc | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/deal.II/grid/grid_reordering.h b/include/deal.II/grid/grid_reordering.h index d730a22b67..8885450353 100644 --- a/include/deal.II/grid/grid_reordering.h +++ b/include/deal.II/grid/grid_reordering.h @@ -24,6 +24,12 @@ 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."); /** diff --git a/source/grid/grid_reordering.cc b/source/grid/grid_reordering.cc index e64ccd956e..90fd85d514 100644 --- a/source/grid/grid_reordering.cc +++ b/source/grid/grid_reordering.cc @@ -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::reorder_cells (std::vector > &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 -- 2.39.5