]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove pre-gcc-2.95 cruft.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 6 May 2002 07:41:55 +0000 (07:41 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 6 May 2002 07:41:55 +0000 (07:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@5813 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_handler.h
deal.II/deal.II/include/fe/fe_base.h
deal.II/deal.II/include/grid/tria.h
deal.II/deal.II/include/multigrid/mg_dof_handler.h
deal.II/deal.II/source/numerics/histogram.cc

index 491988481392c57c0cecbd19979a517781dfbe2c..9c6f0a97e87751064cdb6b514312996ae88d7267 100644 (file)
@@ -1149,20 +1149,10 @@ class DoFHandler  :  public Subscriptor,
                                      */
     std::vector<unsigned int>      vertex_dofs;
 
-
-#if (__GNUC__==2) && (__GNUC_MINOR__ < 95)
-                                    // this seems to be disallowed
-                                    // by the standard, so gcc2.95
-                                    // does not accept it
-    friend class DoFObjectAccessor<1, dim>;
-    friend class DoFObjectAccessor<2, dim>;
-    friend class DoFObjectAccessor<3, dim>;
-#else
-                                    // this, however, may grant
-                                    // access to too many classes,
-                                    // but ...
+                                    /**
+                                     * Make accessor objects friends.
+                                     */
     template <int dim1, int dim2> friend class DoFObjectAccessor;
-#endif
 };
 
 
index c5126fe153d6bd49ab04cab02ffdff20be550e2d..cb0f732e5697d97f7ce851d02011832c8737d04e 100644 (file)
@@ -808,11 +808,7 @@ class FiniteElementBase : public Subscriptor,
                                      * should be resized to zero
                                      * size.
                                      */
-#if !((__GNUC__==2) && (__GNUC_MINOR__==95))
     FullMatrix<double> restriction[GeometryInfo<dim>::children_per_cell];
-#else
-    FullMatrix<double> restriction[1 << dim];
-#endif
 
                                     /**
                                      * Array of embedding
@@ -827,11 +823,8 @@ class FiniteElementBase : public Subscriptor,
                                      * should be resized to zero
                                      * size.
                                      */
-#if ! ((__GNUC__==2) && (__GNUC_MINOR__==95))
     FullMatrix<double> prolongation[GeometryInfo<dim>::children_per_cell];
-#else
-    FullMatrix<double> prolongation[1 << dim];
-#endif
+
                                     /**
                                      * Specify the constraints which
                                      * the dofs on the two sides of a
index f847ad2090075cd382ba806c580363663c5a808c..6927cc403c58c8c52b64b7d28c13fa3e54e23ede 100644 (file)
@@ -48,11 +48,17 @@ template <int dim> class MGDoFHandler;
 template <int dim>
 struct CellData
 {
-#if !((__GNUC__==2) && (__GNUC_MINOR__==95))
+                                    /**
+                                     * Indices of the vertices of
+                                     * this cell.
+                                     */
     int           vertices[GeometryInfo<dim>::vertices_per_cell];
-#else
-    int           vertices[1 << dim];
-#endif
+
+                                    /**
+                                     * Material indicator of this
+                                     * cell. May be used to denote
+                                     * different coefficients, etc.
+                                     */
     unsigned char material_id;
 
                                     /**
index ad8a5bab5d8c1ffc89702bf0a5a20bcad7f431b0..3e09a4ebfd124f48ce2fdab83e2d9d68679d0ddf 100644 (file)
@@ -981,19 +981,10 @@ class MGDoFHandler : public DoFHandler<dim>
                                      */
     std::vector<unsigned int>      mg_used_dofs;
 
-#if (__GNUC__==2) && (__GNUC_MINOR__ < 95)  
-                                    // this seems to be disallowed
-                                    // by the standard, so gcc2.95
-                                    // does not accept it
-    friend class MGDoFObjectAccessor<1, dim>;
-    friend class MGDoFObjectAccessor<2, dim>;
-    friend class MGDoFObjectAccessor<3, dim>;
-#else
-                                    // this, however, may grant
-                                    // access to too many classes,
-                                    // but ...
+                                    /**
+                                     * Make accessor objects friends.
+                                     */
     template <int dim1, int dim2> friend class MGDoFObjectAccessor;
-#endif
 };
 
 
index 1003659a59710c1096ed663e357c24c7faf08f38..1e734620461fc5f9a906c93e9c3946da8028c7a2 100644 (file)
@@ -93,17 +93,7 @@ void Histogram::evaluate (const typename std::vector<Vector<number> > &values,
       {
        typedef bool (*comparator) (const number, const number);
        const comparator logarithmic_less_function
-         =
-#ifdef __GNU_CC
-#if (__GNUC__==2) && (__GNUC_MINOR__ < 95)
-         &logarithmic_less<number>
-#else
-         &Histogram::template logarithmic_less<number>
-#endif
-#else
-         &Histogram::template logarithmic_less<number>   
-#endif
-         ;
+         = &Histogram::template logarithmic_less<number>;
        
        min_value = *std::min_element(values[0].begin(),
                                      values[0].end(),

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.