*/
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
};
* 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
* 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
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;
/**
*/
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
};
{
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(),