From c864a74dd873e0904fe0da68da26d1e09605aeb9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 5 Aug 2023 04:28:09 -0600 Subject: [PATCH] Avoid some uses of GeometryInfo. --- source/grid/grid_generator.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()) -- 2.39.5