]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Code example for GridGenerator::merge_triangulations
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 1 Aug 2018 19:40:52 +0000 (21:40 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 1 Aug 2018 19:40:52 +0000 (21:40 +0200)
include/deal.II/grid/grid_generator.h

index a96ad98b0d3b5c677bf88f4b844469c63a6b2123..dacbccb7ce283d56d0346dcd54c49fc25750c5cd 100644 (file)
@@ -1166,6 +1166,17 @@ namespace GridGenerator
 
   /**
    * Same as above but allows to merge more than two triangulations at once.
+   * The following gives an example of how to use this function:
+   * @code
+   *   Triangulation<2> tria_1, tria_2, tria_3;
+   *   // initialize tria_1, tria_2 and tria_3
+   *   ...
+   *   Triangulation<2> merged_triangulation;
+   *   GridGenerator::merge_triangulations({&tria_1, &tria_2, &tria_3},
+   *                                       merged_triangulation,
+   *                                       1.0e-10,
+   *                                       false);
+   * @endcode
    */
   template <int dim, int spacedim>
   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.