From: Wolfgang Bangerth Date: Tue, 27 Apr 2021 22:02:11 +0000 (-0600) Subject: Replace some more occurrences of GeometryInfo. X-Git-Tag: v9.3.0-rc1~167^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12107%2Fhead;p=dealii.git Replace some more occurrences of GeometryInfo. --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index e2dd694c26..5b1aca0752 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -448,12 +448,12 @@ namespace std::vector quad_cell_count(triangulation.n_raw_quads(), 0); for (const auto &cell : triangulation.cell_iterators()) - for (unsigned int q : GeometryInfo::face_indices()) + for (unsigned int q : cell->face_indices()) ++quad_cell_count[cell->quad_index(q)]; return quad_cell_count; } else - return std::vector(); + return {}; } @@ -9697,9 +9697,7 @@ namespace internal for (const auto &cell : triangulation.cell_iterators()) if (cell->refine_flag_set()) { - for (unsigned int line = 0; - line < GeometryInfo::lines_per_cell; - ++line) + for (unsigned int line = 0; line < cell->n_lines(); ++line) if (GeometryInfo::line_refinement_case( cell->refine_flag_set(), line) == RefinementCase<1>::cut_x) @@ -9733,9 +9731,7 @@ namespace internal cell = triangulation.last_active(); cell != triangulation.end(); --cell) - for (unsigned int line = 0; - line < GeometryInfo::lines_per_cell; - ++line) + for (unsigned int line = 0; line < cell->n_lines(); ++line) { if (cell->line(line)->has_children()) {