From 1b5840de48b63221a035dcaa9f333b3dbaa5b432 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 27 Apr 2021 16:02:11 -0600 Subject: [PATCH] Replace some more occurrences of GeometryInfo. --- source/grid/tria.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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()) { -- 2.39.5