From: Peter Munch Date: Sun, 24 Nov 2024 20:36:57 +0000 (+0100) Subject: Fix warning X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17885%2Fhead;p=dealii.git Fix warning --- diff --git a/source/grid/manifold_lib.cc b/source/grid/manifold_lib.cc index 2086907bae..24b3316824 100644 --- a/source/grid/manifold_lib.cc +++ b/source/grid/manifold_lib.cc @@ -1679,12 +1679,12 @@ TransfiniteInterpolationManifold::initialize( for (const auto &cell : triangulation.active_cell_iterators()) { bool cell_is_flat = true; - for (unsigned int l = 0; l < GeometryInfo::lines_per_cell; ++l) + for (const auto l : cell->line_indices()) if (cell->line(l)->manifold_id() != cell->manifold_id() && cell->line(l)->manifold_id() != numbers::flat_manifold_id) cell_is_flat = false; - if (dim > 2) - for (unsigned int q = 0; q < GeometryInfo::quads_per_cell; ++q) + if constexpr (dim > 2) + for (const auto q : cell->face_indices()) if (cell->quad(q)->manifold_id() != cell->manifold_id() && cell->quad(q)->manifold_id() != numbers::flat_manifold_id) cell_is_flat = false;