From: Wolfgang Bangerth Date: Sat, 5 Aug 2023 10:28:09 +0000 (-0600) Subject: Avoid some uses of GeometryInfo. X-Git-Tag: relicensing~617^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15801%2Fhead;p=dealii.git Avoid some uses of GeometryInfo. --- diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index 6c25951c6a..86669327c5 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -3353,7 +3353,7 @@ namespace GridGenerator auto min_line_length = [](const Triangulation<2> &tria) -> double { double length = std::numeric_limits::max(); for (const auto &cell : tria.active_cell_iterators()) - for (unsigned int n = 0; n < GeometryInfo<2>::lines_per_cell; ++n) + for (unsigned int n = 0; n < cell->n_lines(); ++n) length = std::min(length, cell->line(n)->diameter()); return length; }; @@ -3444,7 +3444,7 @@ namespace GridGenerator // grid around the cylinder to the new TFI manifold id. if (cell->manifold_id() == tfi_manifold_id) { - for (const unsigned int face_n : GeometryInfo<2>::face_indices()) + for (const unsigned int face_n : cell->face_indices()) { const auto &face = cell->face(face_n); if (face->at_boundary() && @@ -3468,7 +3468,7 @@ namespace GridGenerator std::numeric_limits::epsilon() * 10000; if (colorize) for (const auto &cell : tria.active_cell_iterators()) - for (const unsigned int face_n : GeometryInfo<2>::face_indices()) + for (const unsigned int face_n : cell->face_indices()) { const auto face = cell->face(face_n); if (face->at_boundary())