]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add support for 3D and resurrect an original part of the code which was dropped becau...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Dec 1998 18:46:38 +0000 (18:46 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Dec 1998 18:46:38 +0000 (18:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@695 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria_boundary.h

index ebdb8e3e7af17be2b78b588d9cafe54f88e04c7a..a97a9d488062a01ee01f0dfd08fd83a429d8cec3 100644 (file)
@@ -26,6 +26,9 @@ template <> struct BoundaryHelper<2> {
     typedef const Point<2> *PointArray[GeometryInfo<2>::vertices_per_face];
 };
 
+template <> struct BoundaryHelper<3> {
+    typedef const Point<3> *PointArray[GeometryInfo<3>::vertices_per_face];
+};
 
 
 /**
@@ -61,9 +64,17 @@ class Boundary {
   public:
                                     /**
                                      *  Typedef an array of the needed number
-                                     *  of old points.
+                                     *  of old points to compute the new
+                                     *  middle point of a face. This does not
+                                     *  make much sense in 1D, so we set the
+                                     *  array size to a dummy value.
                                      */
     typedef typename BoundaryHelper<dim>::PointArray PointArray;
+// this is the way it should be, but egcs throws an internal compiler error
+// on this, so we invented the above workaround    
+//    typedef const Point<dim>* PointArray[((dim==1) ?
+//                                       1 :
+//                                       GeometryInfo<dim>::vertices_per_face)];
     
                                     /**
                                      *  This function calculates the position

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.