]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Let real_to_standard_face_vertex (and its inverse, standard_to_real_face_vertex)...
authorleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Oct 2007 16:01:14 +0000 (16:01 +0000)
committerleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Oct 2007 16:01:14 +0000 (16:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@15303 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/geometry_info.cc

index e0211a10ee6b7cd5b6683d98c642c70d2208ec5a..af85a5ee8df628887a89ab65381959add1ced405 100644 (file)
@@ -287,9 +287,10 @@ GeometryInfo<dim>::standard_to_real_face_vertex(const unsigned int vertex,
                                                const bool,
                                                const bool)
 {
-  Assert(false, ExcNotImplemented());
+  Assert(dim>1, ExcImpossibleInDim(dim));
+  Assert(vertex<GeometryInfo<dim>::vertices_per_face,
+        ExcIndexRange(vertex,0,GeometryInfo<dim>::vertices_per_face));
   return vertex;
-  
 }
 
 
@@ -355,7 +356,9 @@ GeometryInfo<dim>::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<GeometryInfo<dim>::vertices_per_face,
+        ExcIndexRange(vertex,0,GeometryInfo<dim>::vertices_per_face));
   return vertex;
 }
 

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.