From: Wolfgang Bangerth Date: Fri, 7 Nov 2014 20:47:59 +0000 (-0600) Subject: Minor documentation update. Reorder two functions. X-Git-Tag: v8.2.0-rc1~65^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=405316ae1cc6f403f347507bd30287716f514802;p=dealii.git Minor documentation update. Reorder two functions. --- diff --git a/include/deal.II/distributed/tria.h b/include/deal.II/distributed/tria.h index adb5fb0333..f0b515b2ef 100644 --- a/include/deal.II/distributed/tria.h +++ b/include/deal.II/distributed/tria.h @@ -697,25 +697,21 @@ namespace parallel const void *)> &unpack_callback); /** - * Returns a permutation vector for the mapping from the - * coarse deal cells to the p4est trees. This is the inverse - * of get_p4est_tree_to_coarse_cell_permutation. + * Return a permutation vector for the order the coarse cells + * are handed off to p4est. For example the value of the $i$th element + * in this vector is the index of the deal.II coarse cell (counting + * from begin(0)) that corresponds to the $i$th tree managed by p4est. */ const std::vector & - get_coarse_cell_to_p4est_tree_permutation() const; - - + get_p4est_tree_to_coarse_cell_permutation() const; /** - * Returns a permutation vector for the order the coarse cells - * are handed of to p4est. For example the first element i in - * this vector denotes that the first cell in hierarchical - * ordering is the ith deal cell starting from begin(0). + * Return a permutation vector for the mapping from the + * coarse deal cells to the p4est trees. This is the inverse + * of get_p4est_tree_to_coarse_cell_permutation. */ const std::vector & - get_p4est_tree_to_coarse_cell_permutation() const; - - + get_coarse_cell_to_p4est_tree_permutation() const; /** * Join faces in the p4est forest for periodic boundary diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index 55d554d673..07f4a6986b 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -3322,20 +3322,22 @@ namespace parallel template const std::vector & - Triangulation::get_coarse_cell_to_p4est_tree_permutation() const + Triangulation::get_p4est_tree_to_coarse_cell_permutation() const { - return coarse_cell_to_p4est_tree_permutation; + return p4est_tree_to_coarse_cell_permutation; } template const std::vector & - Triangulation::get_p4est_tree_to_coarse_cell_permutation() const + Triangulation::get_coarse_cell_to_p4est_tree_permutation() const { - return p4est_tree_to_coarse_cell_permutation; + return coarse_cell_to_p4est_tree_permutation; } + + namespace { /**