From 649b0cdeffb0c071fe232393a65de8f3ec880cde Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 14 Aug 1998 12:12:20 +0000 Subject: [PATCH] Invent a workaround for a bug in the egcs 19980803 snapshot. git-svn-id: https://svn.dealii.org/trunk@483 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/Todo | 9 ++++++++- deal.II/deal.II/include/grid/tria_boundary.h | 17 +++++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/deal.II/deal.II/Todo b/deal.II/deal.II/Todo index 076f233782..43a413357f 100644 --- a/deal.II/deal.II/Todo +++ b/deal.II/deal.II/Todo @@ -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: diff --git a/deal.II/deal.II/include/grid/tria_boundary.h b/deal.II/deal.II/include/grid/tria_boundary.h index e2f5ab2324..ea84453bdf 100644 --- a/deal.II/deal.II/include/grid/tria_boundary.h +++ b/deal.II/deal.II/include/grid/tria_boundary.h @@ -5,6 +5,19 @@ /*---------------------------- boundary-function.h ---------------------------*/ #include +#include + + + +/** + * Workaround for a bug in egcs snapshot 1998/08/03. + */ +template 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* PointArray[1<<(dim-1)]; - + typedef typename BoundaryHelper::PointArray PointArray; + /** * This function calculates the position * of the new vertex. -- 2.39.5