From db2b4e93cddfbc8a03172c93a912a0563200cca4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 23 Dec 2023 20:55:21 -0700 Subject: [PATCH] Use explicit casts. --- source/grid/tria_description.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/grid/tria_description.cc b/source/grid/tria_description.cc index 18063ac7f5..e5af3fad66 100644 --- a/source/grid/tria_description.cc +++ b/source/grid/tria_description.cc @@ -1069,7 +1069,8 @@ namespace TriangulationDescription const auto subdomain_id_function = [&partition](const auto &cell) -> unsigned int { if ((cell->is_active() && (cell->is_artificial() == false))) - return partition[cell->global_active_cell_index()]; + return static_cast( + partition[cell->global_active_cell_index()]); else return numbers::artificial_subdomain_id; }; @@ -1078,7 +1079,8 @@ namespace TriangulationDescription [&construct_multigrid, &partitions_mg](const auto &cell) -> unsigned int { if (construct_multigrid && (cell->is_artificial_on_level() == false)) - return partitions_mg[cell->level()][cell->global_level_cell_index()]; + return static_cast( + partitions_mg[cell->level()][cell->global_level_cell_index()]); else return numbers::artificial_subdomain_id; }; -- 2.39.5