From: Luca Heltai Date: Tue, 4 Dec 2018 15:47:18 +0000 (+0100) Subject: Fixed comments. X-Git-Tag: v9.1.0-rc1~513^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a2873f037aaa8a56013e31cdc5ec61eda6ac9ed;p=dealii.git Fixed comments. --- diff --git a/bundled/boost-1.62.0/include/boost/geometry/algorithms/detail/overlay/traversal.hpp b/bundled/boost-1.62.0/include/boost/geometry/algorithms/detail/overlay/traversal.hpp index 46e2e19214..71b921e14e 100755 --- a/bundled/boost-1.62.0/include/boost/geometry/algorithms/detail/overlay/traversal.hpp +++ b/bundled/boost-1.62.0/include/boost/geometry/algorithms/detail/overlay/traversal.hpp @@ -152,8 +152,8 @@ struct traversal } } - inline bool is_visited(turn_type const& turn, turn_operation_type const& op, - signed_size_type turn_index, int op_index) const + inline bool is_visited(turn_type const&, turn_operation_type const& op, + signed_size_type, int) const { return op.visited.visited(); } diff --git a/include/deal.II/grid/grid_tools_cache.h b/include/deal.II/grid/grid_tools_cache.h index 3a10319374..ddbfc8444d 100644 --- a/include/deal.II/grid/grid_tools_cache.h +++ b/include/deal.II/grid/grid_tools_cache.h @@ -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, 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< diff --git a/include/deal.II/grid/grid_tools_cache_update_flags.h b/include/deal.II/grid/grid_tools_cache_update_flags.h index 326f15d3ff..a119af38ab 100644 --- a/include/deal.II/grid/grid_tools_cache_update_flags.h +++ b/include/deal.II/grid/grid_tools_cache_update_flags.h @@ -76,7 +76,7 @@ namespace GridTools /** * Update all objects. */ - update_all = 0xFFF, + update_all = 0x0FF, }; diff --git a/source/grid/grid_tools_cache.cc b/source/grid/grid_tools_cache.cc index a969afe419..96219c9996 100644 --- a/source/grid/grid_tools_cache.cc +++ b/source/grid/grid_tools_cache.cc @@ -105,7 +105,7 @@ namespace GridTools std::vector, 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); } diff --git a/tests/boost/cache_boxes_rtree_01.cc b/tests/boost/cache_boxes_rtree_01.cc index 7ec73a3ccb..33cb663954 100644 --- a/tests/boost/cache_boxes_rtree_01.cc +++ b/tests/boost/cache_boxes_rtree_01.cc @@ -39,7 +39,7 @@ test(const unsigned int ref = 2, const unsigned int n_points = 10) Triangulation tria; GridGenerator::hyper_cube(tria); tria.refine_global(ref); - GridTools::Cache cache(tria); + GridTools::Cache cache(tria); const auto &b_tree = cache.get_cell_bounding_boxes_rtree(); diff --git a/tests/boost/cache_vertices_rtree_01.cc b/tests/boost/cache_vertices_rtree_01.cc index c6ae8d56ae..7c2fba0915 100644 --- a/tests/boost/cache_vertices_rtree_01.cc +++ b/tests/boost/cache_vertices_rtree_01.cc @@ -39,7 +39,7 @@ test(const unsigned int ref = 2, const unsigned int n_points = 10) Triangulation tria; GridGenerator::hyper_cube(tria); tria.refine_global(ref); - GridTools::Cache cache(tria); + GridTools::Cache cache(tria); const auto &v_tree = cache.get_used_vertices_rtree();