]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Better document p::d::Triangulation::attach_mesh_data().
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 13 Apr 2018 17:51:13 +0000 (11:51 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 17 Apr 2018 02:54:22 +0000 (20:54 -0600)
include/deal.II/distributed/tria.h

index cd129509cc64d72f45b4bb71e2e3e6843c77eda7..8dae2a39bce587d5409bd54829239cfac6c56cbb 100644 (file)
@@ -890,7 +890,20 @@ namespace parallel
       /**
        * Internal function notifying all registered classes to attach their
        * data before repartitioning occurs. Called from
-       * execute_coarsening_and_refinement().
+       * execute_coarsening_and_refinement() and save(). The function
+       * recursively visits all deal.II cells and corresponding p4est
+       * quadrants and calls the callbacks registered via
+       * register_data_attach() on the ones where data needs to be
+       * stored.
+       *
+       * This function is odd in that it is called on a p4est triangulation
+       * and a deal.II triangulation that may not be in sync when it is called
+       * from execute_coarsening_and_refinement(). Specifically, the p4est
+       * trees have already been refined and coarsened, but the deal.II
+       * triangulation has not. Consequently, when walking the two recursively,
+       * it can reason about which cells will remain after the deal.II
+       * triangulation has been brought up to date with regard to the p4est
+       * trees.
        */
       void attach_mesh_data();
 

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.