From bcc57800bd30a58b878dc75ae1a289b4f62307c9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 13 Jul 2015 16:07:29 -0500 Subject: [PATCH] Remove storing data we end up not using. We passed a data element around and stored it in a local class, but ended up not using it after all. This is likely a leftover from a previous iteration in the code. In any case, removing the member variable turns out to compile and test fine, so we don't need to pass this data to the constructor either. --- source/distributed/tria.cc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index 033d9de0fc..f9fb9dc4e3 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -1652,8 +1652,7 @@ namespace public: RefineAndCoarsenList (const Triangulation &triangulation, const std::vector &p4est_tree_to_coarse_cell_permutation, - const types::subdomain_id my_subdomain, - typename internal::p4est::types::forest &forest); + const types::subdomain_id my_subdomain); /** * A callback function that we pass to the p4est data structures when a @@ -1688,8 +1687,6 @@ namespace std::vector::quadrant> coarsen_list; typename std::vector::quadrant>::const_iterator current_coarsen_pointer; - typename internal::p4est::types::forest forest; - void build_lists (const typename Triangulation::cell_iterator &cell, const typename internal::p4est::types::quadrant &p4est_cell, const unsigned int myid); @@ -1713,10 +1710,7 @@ namespace RefineAndCoarsenList:: RefineAndCoarsenList (const Triangulation &triangulation, const std::vector &p4est_tree_to_coarse_cell_permutation, - const types::subdomain_id my_subdomain, - typename internal::p4est::types::forest &forest) - : - forest(forest) + const types::subdomain_id my_subdomain) { // count how many flags are set and allocate that much memory unsigned int n_refine_flags = 0, @@ -3384,8 +3378,7 @@ namespace parallel RefineAndCoarsenList refine_and_coarsen_list (*this, p4est_tree_to_coarse_cell_permutation, - my_subdomain, - *parallel_forest); + my_subdomain); // copy refine and coarsen flags into p4est and execute the refinement // and coarsening. this uses the refine_and_coarsen_list just built, -- 2.39.5