]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Clarify documentation. Convert an argument to array of unsigned integers, since it...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 10 Sep 2006 01:07:04 +0000 (01:07 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 10 Sep 2006 01:07:04 +0000 (01:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@13876 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/grid_tools.h
deal.II/deal.II/source/grid/grid_tools.cc

index 3c52cb03d1034393d30876f20edc2f63fe18779a..66b70f078d57bb15952984dac0b7ae74d9b61267 100644 (file)
@@ -59,16 +59,25 @@ class GridTools
     double diameter (const Triangulation<1> &tria);
 
                                     /**
-                                     * Return the measure of a cell
-                                     * represented by a subset of
-                                     * vertices in @p all_vertices
-                                     * which is specified by @p
-                                     * vertex_indices.
+                                     * Given a list of vertices (typically
+                                     * obtained using
+                                     * Triangulation::get_vertices) as the
+                                     * first, and a list of vertex indices
+                                     * that characterize a single cell as the
+                                     * second argument, return the measure
+                                     * (area, volume) of this cell. If this
+                                     * is a real cell, then you can get the
+                                     * same result using
+                                     * <code>cell-@>measure()</code>, but
+                                     * this function also works for cells
+                                     * that do not exist except that you make
+                                     * it up by naming its vertices from the
+                                     * list.
                                      */
     template <int dim>
     static
-    double cell_measure(const std::vector<Point<dim> > &all_vertices,
-                       const int vertex_indices[GeometryInfo<dim>::vertices_per_cell]);
+    double cell_measure (const std::vector<Point<dim> > &all_vertices,
+                        const unsigned int (&vertex_indices)[GeometryInfo<dim>::vertices_per_cell]);
 
                                     /**
                                      * Remove vertices that are not
index 8b44eb1df61bd6c84b284ec9dea9e0cd1af792c4..b6c9664e2cdb4182af247b172947b7c21a0ad276 100644 (file)
@@ -126,8 +126,8 @@ GridTools::diameter (const Triangulation<1> &tria)
 
 template <>
 double
-GridTools::cell_measure(const std::vector<Point<3> > &all_vertices,
-                       const int vertex_indices[GeometryInfo<3>::vertices_per_cell])
+GridTools::cell_measure (const std::vector<Point<3> > &all_vertices,
+                        const unsigned int (&vertex_indices)[GeometryInfo<3>::vertices_per_cell])
 {
                                   // note that this is the
                                   // cell_measure based on the new
@@ -247,7 +247,7 @@ GridTools::cell_measure(const std::vector<Point<3> > &all_vertices,
 template <int dim>
 double
 GridTools::cell_measure(const std::vector<Point<dim> > &all_vertices,
-                       const int [GeometryInfo<dim>::vertices_per_cell])
+                       const unsigned int (&) [GeometryInfo<dim>::vertices_per_cell])
 {
   Assert(false, ExcNotImplemented());
   return 0.;

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.