]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove begin_cell
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 29 Aug 2019 03:49:23 +0000 (23:49 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 29 Aug 2019 04:22:14 +0000 (00:22 -0400)
source/distributed/tria.cc

index c09f51806ac1d5b72e584abc042a7e6b23bd82f4..bb9473154d31c43419f19c7c4709c16b5937ae89 100644 (file)
@@ -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

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.