From: Tobias Leicht Date: Fri, 12 Oct 2007 16:01:14 +0000 (+0000) Subject: Let real_to_standard_face_vertex (and its inverse, standard_to_real_face_vertex)... X-Git-Tag: v8.0.0~9770 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cb3f5675022bb31e9869ca91e81b80514b3b797;p=dealii.git 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 --- 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; }