From 18662b6bc865cd7c68a86eb19fddb8e816730801 Mon Sep 17 00:00:00 2001 From: hartmann Date: Wed, 6 Jul 2005 09:43:09 +0000 Subject: [PATCH] Why copying all CellData? This is not needed! Is now removed, saves computing time and memory. git-svn-id: https://svn.dealii.org/trunk@11076 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/tria.cc | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/deal.II/deal.II/source/grid/tria.cc b/deal.II/deal.II/source/grid/tria.cc index 1da4bd943c..12d406f838 100644 --- a/deal.II/deal.II/source/grid/tria.cc +++ b/deal.II/deal.II/source/grid/tria.cc @@ -342,7 +342,7 @@ void Triangulation<1>::create_triangulation (const std::vector > &v, template <> void Triangulation<2>::create_triangulation (const std::vector > &v, - const std::vector > &c, + const std::vector > &cells, const SubCellData &subcelldata) { const unsigned int dim=2; @@ -357,11 +357,6 @@ void Triangulation<2>::create_triangulation (const std::vector > &v, vertices = v; vertices_used = std::vector (v.size(), true); - // copy cells. This is needed since - // we may need to change entries - std::vector > 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 > &v, - const std::vector > &c, + const std::vector > &cells, const SubCellData &subcelldata) { const unsigned int dim=3; @@ -702,10 +697,6 @@ Triangulation<3>::create_triangulation (const std::vector > &v, vertices = v; vertices_used = std::vector (v.size(), true); - // copy cells. This is needed since - // we may need to change entries - std::vector > cells(c); - /////////////////////////////////////// // first set up some collections of data // -- 2.39.5