]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add copy constructor GridReordering<dim>::Cell::Cell (const Cell &c), as the prerelea...
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Wed, 14 Mar 2001 14:20:08 +0000 (14:20 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Wed, 14 Mar 2001 14:20:08 +0000 (14:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@4202 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/grid_reordering.h
deal.II/deal.II/source/grid/grid_reordering.cc

index 6f952d68d6283a32805fbdec1518c550e44c4c65..a967e365c8188131a07a8acd30e58be39f5d293a 100644 (file)
@@ -658,6 +658,13 @@ class GridReordering : private GridReorderingInfo<dim>
                                          */
        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
index 97f9034dee026a24f43edf2741f58c9a07d66497..04eeb04447976378cba879221b954b87d0ffe1ca 100644 (file)
@@ -67,6 +67,20 @@ GridReordering<dim>::Cell::Cell (const CellData<dim> &cd,
 };
 
 
+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


Typeset in Trocchi and Trocchi Bold Sans Serif.