From 35f4d73fce68ea23491ff1eb5d223e224b808d3e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 27 Dec 2023 15:41:34 -0700 Subject: [PATCH] Be explicit about the type used. --- source/grid/tria_description.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/grid/tria_description.cc b/source/grid/tria_description.cc index e5af3fad66..f9949f09d6 100644 --- a/source/grid/tria_description.cc +++ b/source/grid/tria_description.cc @@ -1067,9 +1067,9 @@ namespace TriangulationDescription settings_in); const auto subdomain_id_function = - [&partition](const auto &cell) -> unsigned int { + [&partition](const auto &cell) -> types::subdomain_id { if ((cell->is_active() && (cell->is_artificial() == false))) - return static_cast( + return static_cast( partition[cell->global_active_cell_index()]); else return numbers::artificial_subdomain_id; @@ -1077,9 +1077,9 @@ namespace TriangulationDescription const auto level_subdomain_id_function = [&construct_multigrid, - &partitions_mg](const auto &cell) -> unsigned int { + &partitions_mg](const auto &cell) -> types::subdomain_id { if (construct_multigrid && (cell->is_artificial_on_level() == false)) - return static_cast( + return static_cast( partitions_mg[cell->level()][cell->global_level_cell_index()]); else return numbers::artificial_subdomain_id; -- 2.39.5