From d6fa02b9736534d45089d6acae4b0b7701c31371 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sun, 24 Nov 2024 21:36:57 +0100 Subject: [PATCH] Fix warning --- source/grid/manifold_lib.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5