From: Guido Kanschat Date: Mon, 27 Aug 2012 10:26:11 +0000 (+0000) Subject: giving up fixing cells_adjacent_to_vertex and deprecating it due to its bad implement... X-Git-Tag: v8.0.0~2239 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d445e679737cf0db3cbbeda3d91716e9ea763410;p=dealii.git giving up fixing cells_adjacent_to_vertex and deprecating it due to its bad implementation git-svn-id: https://svn.dealii.org/trunk@26126 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/grid/grid_tools.h b/deal.II/include/deal.II/grid/grid_tools.h index d001af2caa..08a74019f5 100644 --- a/deal.II/include/deal.II/grid/grid_tools.h +++ b/deal.II/include/deal.II/grid/grid_tools.h @@ -266,6 +266,19 @@ namespace GridTools const Point &p); /** + * @deprecated This function might + * be acceptable to find a patch + * around a single vertex, but it + * wastes resources creating + * patches around all vertices. The + * function mail fail on + * anisotropic meshes, and an easy + * fix is not obvious. Therefore, + * it should be replaced by a + * function which computes all + * active vertex patches by looping + * over cells. + * * Find and return a vector of * iterators to active cells that * surround a given vertex @p vertex. diff --git a/deal.II/source/grid/grid_tools.cc b/deal.II/source/grid/grid_tools.cc index cea5d08019..a97cf9aa93 100644 --- a/deal.II/source/grid/grid_tools.cc +++ b/deal.II/source/grid/grid_tools.cc @@ -732,8 +732,9 @@ namespace GridTools // that cell. in either case, it is adjacent // to the vertex, so add it to the list as well // (if the cell was already in the list then - // the std::set makes sure that we get it only once) - adjacent_cells.insert (cell->neighbor(face)); + // the std::set makes sure that we get it only + // once) + adjacent_cells.insert (neighbor); goto next_cell; } }