From 3cb3f5675022bb31e9869ca91e81b80514b3b797 Mon Sep 17 00:00:00 2001 From: Tobias Leicht Date: Fri, 12 Oct 2007 16:01:14 +0000 Subject: [PATCH] Let real_to_standard_face_vertex (and its inverse, standard_to_real_face_vertex) return something useful also in 2D. To this end, remove an unneccessary TODO, and introduce two new Asserts. git-svn-id: https://svn.dealii.org/trunk@15303 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/geometry_info.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deal.II/base/source/geometry_info.cc b/deal.II/base/source/geometry_info.cc index e0211a10ee..af85a5ee8d 100644 --- a/deal.II/base/source/geometry_info.cc +++ b/deal.II/base/source/geometry_info.cc @@ -287,9 +287,10 @@ GeometryInfo::standard_to_real_face_vertex(const unsigned int vertex, const bool, const bool) { - Assert(false, ExcNotImplemented()); + Assert(dim>1, ExcImpossibleInDim(dim)); + Assert(vertex::vertices_per_face, + ExcIndexRange(vertex,0,GeometryInfo::vertices_per_face)); return vertex; - } @@ -355,7 +356,9 @@ GeometryInfo::real_to_standard_face_vertex(const unsigned int vertex, const bool, const bool) { -//TODO:[Tobias] do we need to care here about face_orientation in 2d?! + Assert(dim>1, ExcImpossibleInDim(dim)); + Assert(vertex::vertices_per_face, + ExcIndexRange(vertex,0,GeometryInfo::vertices_per_face)); return vertex; } -- 2.39.5