template <int dim>
class DoFHandler : public DoFDimensionInfo<dim> {
public:
- // insert these definitions for gcc2.8,
- // since it can't inherit typedefs (I
- // believe it should, but it can't)
typedef typename DoFDimensionInfo<dim>::raw_line_iterator raw_line_iterator;
typedef typename DoFDimensionInfo<dim>::line_iterator line_iterator;
typedef typename DoFDimensionInfo<dim>::active_line_iterator active_line_iterator;
template <int dim>
class MGDoFHandler : public DoFHandler<dim> {
public:
- // insert these definitions for gcc2.8,
- // since it can't inherit typedefs (I
- // believe it should, but it can't)
typedef typename MGDoFDimensionInfo<dim>::raw_line_iterator raw_line_iterator;
typedef typename MGDoFDimensionInfo<dim>::line_iterator line_iterator;
typedef typename MGDoFDimensionInfo<dim>::active_line_iterator active_line_iterator;
template <int dim>
class MGDoFHandler : public DoFHandler<dim> {
public:
- // insert these definitions for gcc2.8,
- // since it can't inherit typedefs (I
- // believe it should, but it can't)
typedef typename MGDoFDimensionInfo<dim>::raw_line_iterator raw_line_iterator;
typedef typename MGDoFDimensionInfo<dim>::line_iterator line_iterator;
typedef typename MGDoFDimensionInfo<dim>::active_line_iterator active_line_iterator;
// otherwise, the number states which
// line in the constraint matrix handles
// this index
- //
- // for gcc2.9: replace this by
- // distribute(sparsity.n_rows(), -1)
- vector<int> distribute;
- distribute.resize (sparsity.n_rows(), -1);
+ vector<int> distribute(sparsity.n_rows(), -1);
for (unsigned int c=0; c<lines.size(); ++c)
distribute[lines[c].line] = static_cast<signed int>(c);
// otherwise, the number states which
// line in the constraint matrix handles
// this index
- //
- // for gcc2.9: replace this by
- // distribute(sparsity.n_rows(), -1)
- vector<int> distribute;
- distribute.resize (sparsity.n_rows(), -1);
+ vector<int> distribute (sparsity.n_rows(), -1);
for (unsigned int c=0; c<lines.size(); ++c)
distribute[lines[c].line] = static_cast<signed int>(c);
int n_dofs = sparsity.n_rows();
// store the new dof numbers; -1 means
// that no new number was chosen yet
- //
- // the commented line is what would be the
- // correct way to do, but gcc2.8 chokes
- // over that. The other lines are a
- // workaround
-// vector<int> new_number(n_dofs, -1);
- vector<int> new_number;
- new_number.resize (n_dofs, -1);
+ vector<int> new_number(n_dofs, -1);
// store the indices of the dofs renumbered
// in the last round. Default to starting
// vertex we pass by belongs to
mg_vertex_dofs.resize (tria->vertices.size());
- // here again, gcc2.8 fails to
- // construct the vector properly
- // using parameters to the constructor
-// vector<unsigned int> min_level (tria->vertices.size(), tria->n_levels());
-// vector<unsigned int> max_level (tria->vertices.size(), 0);
- vector<unsigned int> min_level, max_level;
- min_level.resize (tria->vertices.size(), tria->n_levels());
- max_level.resize (tria->vertices.size(), 0);
+ vector<unsigned int> min_level (tria->vertices.size(), tria->n_levels());
+ vector<unsigned int> max_level (tria->vertices.size(), 0);
Triangulation<dim>::cell_iterator cell = tria->begin(),
endc = tria->end();
#if deal_II_dimension == 1
-// declare this function to be explicitely specialized before first use
-// egcs wants this, but gcc2.8.1 produces an internal compiler error, so
-// we drop this declaration again for the time being
-
-
template <>
void FiniteElement<1>::get_support_points (const DoFHandler<1>::cell_iterator &cell,
const Boundary<1> &,
int n_dofs = sparsity.n_rows();
// store the new dof numbers; -1 means
// that no new number was chosen yet
- //
- // the commented line is what would be the
- // correct way to do, but gcc2.8 chokes
- // over that. The other lines are a
- // workaround
-// vector<int> new_number(n_dofs, -1);
- vector<int> new_number;
- new_number.resize (n_dofs, -1);
+ vector<int> new_number(n_dofs, -1);
// store the indices of the dofs renumbered
// in the last round. Default to starting
// vertex we pass by belongs to
mg_vertex_dofs.resize (tria->vertices.size());
- // here again, gcc2.8 fails to
- // construct the vector properly
- // using parameters to the constructor
-// vector<unsigned int> min_level (tria->vertices.size(), tria->n_levels());
-// vector<unsigned int> max_level (tria->vertices.size(), 0);
- vector<unsigned int> min_level, max_level;
- min_level.resize (tria->vertices.size(), tria->n_levels());
- max_level.resize (tria->vertices.size(), 0);
+ vector<unsigned int> min_level (tria->vertices.size(), tria->n_levels());
+ vector<unsigned int> max_level (tria->vertices.size(), 0);
Triangulation<dim>::cell_iterator cell = tria->begin(),
endc = tria->end();