From: Wolfgang Bangerth Date: Wed, 27 Dec 2023 22:41:34 +0000 (-0700) Subject: Be explicit about the type used. X-Git-Tag: relicensing~221^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35f4d73fce68ea23491ff1eb5d223e224b808d3e;p=dealii.git Be explicit about the type used. --- 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;