]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve example in new mesh_loop function
authorJean-Paul Pelteret <jppelteret@gmail.com>
Sat, 23 Mar 2019 15:28:24 +0000 (16:28 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Sat, 23 Mar 2019 22:19:35 +0000 (23:19 +0100)
include/deal.II/meshworker/mesh_loop.h

index 8a76d18bc1d1630820c1993ce36cff33a3ccff47..d1244d395013a11537418e19a3232aec429e09b7 100644 (file)
@@ -417,29 +417,37 @@ namespace MeshWorker
    *
    * An example usage of the function is given by
    * @code
+   *
+   * struct ScratchData;
+   * struct CopyData;
+   *
    * template <int dim, int spacedim>
-   * class TestClass
+   * class MyClass
    * {
    * public:
    *   void
    *   cell_worker(const CellIteratorType &cell, ScratchData &, CopyData &);
    *
+   *   void
+   *   copier(const CopyData &);
+   *
    *   ...
    * };
    *
-   *   ...
-   *   TestClass<dim, spacedim> test_class;
-   *   ScratchData              scratch;
-   *   CopyData                 copy;
+   * ...
+   *
+   * MyClass<dim, spacedim> my_class;
+   * SratchData             scratch;
+   * CopyData               copy;
    *
-   *   mesh_loop(tria.begin_active(),
-   *             tria.end(),
-   *             test_class,
-   *             &TestClass<dim, spacedim>::cell_worker,
-   *             &TestClass<dim, spacedim>::copier,
-   *             scratch,
-   *             copy,
-   *             assemble_own_cells);
+   * mesh_loop(tria.begin_active(),
+   *           tria.end(),
+   *           my_class,
+   *           &MyClass<dim, spacedim>::cell_worker,
+   *           &MyClass<dim, spacedim>::copier,
+   *           scratch,
+   *           copy,
+   *           assemble_own_cells);
    * @endcode
    *
    * @ingroup MeshWorker

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.