]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Invent a workaround for a bug in the egcs 19980803 snapshot.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 14 Aug 1998 12:12:20 +0000 (12:12 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 14 Aug 1998 12:12:20 +0000 (12:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@483 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 076f233782bedbce2a7c4700a20e88ab6bcab760..43a413357fa79ab0c8aece51e4575747823cfb0e 100644 (file)
@@ -118,11 +118,18 @@ Fully implement the POVRAY format, i.e. use textures, a better angle
   of view, etc. The present implementation is only a rudimentary hack.
 
 
-Review the restruction matrices. I'm not really sure about their
+Review the restriction matrices. I'm not really sure about their
   meaning and how they are defined, so they may be wrong for linear
   elements and they are not implemented at all for quadratic ones.
 
 
+Remove the workaround with the BoundaryHelper class which was
+  introduced to work around a problem in the egcs-19980803 snapshot
+  (previous ones worked flawless)
+
+
+
+
 
 
 DEAL:
index e2f5ab23244be18fe2b0ba4b81aa56b8b7fd37e1..ea84453bdf57016c06a30b06aa3acc0b939c783d 100644 (file)
@@ -5,6 +5,19 @@
 /*----------------------------   boundary-function.h     ---------------------------*/
 
 #include <grid/point.h>
+#include <grid/geometry_info.h>
+
+
+
+/**
+ * Workaround for a bug in egcs snapshot 1998/08/03.
+ */
+template <int dim> struct BoundaryHelper;
+template <> struct BoundaryHelper<2> {
+    typedef const Point<2> *PointArray[GeometryInfo<2>::vertices_per_face];
+};
+    
+
 
 /**
  *   This class is used to represent a boundary to a triangulation.
@@ -41,8 +54,8 @@ class Boundary {
                                      *  Typedef an array of the needed number
                                      *  of old points.
                                      */
-    typedef const Point<dim>* PointArray[1<<(dim-1)];
-
+    typedef typename BoundaryHelper<dim>::PointArray PointArray;
+    
                                     /**
                                      *  This function calculates the position
                                      *  of the new 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.