]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed comments. 7498/head
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 4 Dec 2018 15:47:18 +0000 (16:47 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Tue, 4 Dec 2018 15:47:49 +0000 (16:47 +0100)
bundled/boost-1.62.0/include/boost/geometry/algorithms/detail/overlay/traversal.hpp
include/deal.II/grid/grid_tools_cache.h
include/deal.II/grid/grid_tools_cache_update_flags.h
source/grid/grid_tools_cache.cc
tests/boost/cache_boxes_rtree_01.cc
tests/boost/cache_vertices_rtree_01.cc

index 46e2e19214e654a3bba2301f469195ca511313f1..71b921e14ec68c2fe3d44debb9ee2d7630af6779 100755 (executable)
@@ -152,8 +152,8 @@ struct traversal
         }\r
     }\r
 \r
-    inline bool is_visited(turn_type const& turn, turn_operation_type const& op,\r
-                           signed_size_type turn_index, int op_index) const\r
+    inline bool is_visited(turn_type const&, turn_operation_type const& op,\r
+                           signed_size_type, int) const\r
     {\r
         return op.visited.visited();\r
     }\r
index 3a10319374f44c53fe322dcbd9dc351077baee9b..ddbfc8444d1ed172fb7c9ee7b7e655ff1d865ffa 100644 (file)
@@ -123,14 +123,14 @@ namespace GridTools
     get_used_vertices() const;
 
     /**
-     * Returned the cached RTree object for the vertices, constructed using the
+     * Return the cached RTree object for the vertices, constructed using the
      * used vertices of the triangulation.
      */
     const RTree<std::pair<Point<spacedim>, unsigned int>> &
     get_used_vertices_rtree() const;
 
     /**
-     * Returned the cached RTree object of the cell bounging boxes, constructed
+     * Return the cached RTree object of the cell bounging boxes, constructed
      * using the active cell iterators of the stored triangulation.
      */
     const RTree<
index 326f15d3ffeb8625aac02da0ba1e6bdf0d081163..a119af38ab9738d159a94529202d816f4cb27da7 100644 (file)
@@ -76,7 +76,7 @@ namespace GridTools
     /**
      * Update all objects.
      */
-    update_all = 0xFFF,
+    update_all = 0x0FF,
   };
 
 
index a969afe419ddf1159416d964178ed027dd2f3c54..96219c99966f464241931430459621c8b5d4ca50 100644 (file)
@@ -105,7 +105,7 @@ namespace GridTools
         std::vector<std::pair<Point<spacedim>, unsigned int>> vertices(
           used_vertices.size());
         unsigned int i = 0;
-        for (auto it : used_vertices)
+        for (const auto &it : used_vertices)
           vertices[i++] = std::make_pair(it.second, it.first);
         used_vertices_rtree = pack_rtree(vertices);
       }
index 7ec73a3ccbde12b560227c224ca57d838faec06f..33cb6639549ee704be7645aafcf91caa0a3b2cba 100644 (file)
@@ -39,7 +39,7 @@ test(const unsigned int ref = 2, const unsigned int n_points = 10)
   Triangulation<dim, spacedim> tria;
   GridGenerator::hyper_cube(tria);
   tria.refine_global(ref);
-  GridTools::Cache cache(tria);
+  GridTools::Cache<dim, spacedim> cache(tria);
 
   const auto &b_tree = cache.get_cell_bounding_boxes_rtree();
 
index c6ae8d56ae50b2216af6c83d6f92e7c4c7569275..7c2fba0915caac6b42de9f165e8b2bb68ca9af1b 100644 (file)
@@ -39,7 +39,7 @@ test(const unsigned int ref = 2, const unsigned int n_points = 10)
   Triangulation<dim, spacedim> tria;
   GridGenerator::hyper_cube(tria);
   tria.refine_global(ref);
-  GridTools::Cache cache(tria);
+  GridTools::Cache<dim, spacedim> cache(tria);
 
   const auto &v_tree = cache.get_used_vertices_rtree();
 

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.