*/
Cell (const CellData<dim> &cd,
const unsigned int cell_no);
+
+ /**
+ * Copy constructor to work
+ * around a bug in a gcc3.0
+ * snapshot.
+ */
+ Cell (const Cell &);
/**
* Count the existing neighbors
-// if in optimized mode: include more templates
-#ifndef DEBUG
+// include more templates in debug and optimized mode
# include "tria_accessor.templates.h"
-#endif
#endif
};
+template <int dim>
+GridReordering<dim>::Cell::Cell (const Cell &c) :
+ CellData<dim> (c),
+ cell_no(c.cell_no),
+ track_back_to_cell(c.track_back_to_cell)
+{
+ for (unsigned int i=0; i<GridReorderingInfo<dim>::rotational_states_of_cells; ++i)
+ for (unsigned int j=0; j<GeometryInfo<dim>::faces_per_cell; ++j)
+ faces[i][j]=c.faces[i][j];
+
+ for (unsigned int i=0; i<GeometryInfo<dim>::faces_per_cell; ++i)
+ neighbors[i]=c.neighbors[i];
+}
+
template <int dim>
inline
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