]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Why copying all CellData? This is not needed! Is now removed, saves computing time...
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 6 Jul 2005 09:43:09 +0000 (09:43 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 6 Jul 2005 09:43:09 +0000 (09:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@11076 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc

index 1da4bd943c8e99c519bcc7f315a6e36ffc2fd136..12d406f838780dd557ef69ae4da60613befaad2a 100644 (file)
@@ -342,7 +342,7 @@ void Triangulation<1>::create_triangulation (const std::vector<Point<1> >    &v,
 
 template <>
 void Triangulation<2>::create_triangulation (const std::vector<Point<2> >    &v,
-                                            const std::vector<CellData<2> > &c,
+                                            const std::vector<CellData<2> > &cells,
                                             const SubCellData               &subcelldata)
 {
   const unsigned int dim=2;
@@ -357,11 +357,6 @@ void Triangulation<2>::create_triangulation (const std::vector<Point<2> >    &v,
   vertices = v;
   vertices_used = std::vector<bool> (v.size(), true);
 
-                                  // copy cells. This is needed since
-                                  // we may need to change entries
-  std::vector<CellData<2> > cells(c);
-
-
                                   // make up a list of the needed
                                   // lines each line is a pair of
                                   // vertices. The list is kept
@@ -687,7 +682,7 @@ struct QuadComparator
 template <>
 void
 Triangulation<3>::create_triangulation (const std::vector<Point<3> >    &v,
-                                        const std::vector<CellData<3> > &c,
+                                        const std::vector<CellData<3> > &cells,
                                         const SubCellData               &subcelldata)
 {
   const unsigned int dim=3;
@@ -702,10 +697,6 @@ Triangulation<3>::create_triangulation (const std::vector<Point<3> >    &v,
   vertices = v;
   vertices_used = std::vector<bool> (v.size(), true);
 
-                                  // copy cells. This is needed since
-                                  // we may need to change entries
-  std::vector<CellData<3> > cells(c);
-
                                   ///////////////////////////////////////
                                   // first set up some collections of data
                                   //

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.