]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explain a code example better.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 13 Sep 2017 13:42:15 +0000 (07:42 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 13 Sep 2017 13:42:15 +0000 (07:42 -0600)
include/deal.II/distributed/grid_tools.h

index ad3edeb35ab6ae1d6d44b3ac3f00eb5777587c49..319c70ee7d2c794c54162dfafed6b5d1da54a63d 100644 (file)
@@ -110,10 +110,18 @@ namespace parallel
      *        (dof_handler, pack, unpack);
      * @endcode
      *
-     * You will notice that the lambda function returns an `unsigned int`,
+     * You will notice that the @p pack lambda function returns an `unsigned int`,
      * not a `boost::optional<unsigned int>`. The former converts automatically
      * to the latter, implying that data will always be transported to the
      * other processor.
+     *
+     * (In reality, the @p unpack function needs to be a bit more
+     * complicated because it is not allowed to call
+     * DoFAccessor::set_active_fe_index() on ghost cells. Rather, the
+     * @p unpack function directly accesses internal data structures. But
+     * you get the idea -- the code could, just as well, have exchanged
+     * material ids, user indices, boundary indictors, or any kind of other
+     * data with similar calls as the ones above.)
      */
     template <typename DataType, typename MeshType>
     void

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.