From e7bdaa8ce7c506fa5a177b910ce2b157f830f424 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 28 Aug 2019 23:49:23 -0400 Subject: [PATCH] Remove begin_cell --- source/distributed/tria.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index c09f51806a..bb9473154d 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -4598,8 +4598,6 @@ namespace parallel it = periodicity_vector.begin(); periodic_end = periodicity_vector.end(); - const auto begin_cell = this->begin(); - for (; it < periodic_end; ++it) { const cell_iterator first_cell = it->cell[0]; @@ -4609,11 +4607,9 @@ namespace parallel // respective cells of the matching faces in p4est const unsigned int tree_left = - coarse_cell_to_p4est_tree_permutation[first_cell->index() - - begin_cell->index()]; + coarse_cell_to_p4est_tree_permutation[first_cell->index()]; const unsigned int tree_right = - coarse_cell_to_p4est_tree_permutation[second_cell->index() - - begin_cell->index()]; + coarse_cell_to_p4est_tree_permutation[second_cell->index()]; // p4est wants to know which corner the first corner on // the face with the lower id is mapped to on the face with -- 2.39.5