From: Wolfgang Bangerth Date: Sun, 24 Dec 2023 03:55:21 +0000 (-0700) Subject: Use explicit casts. X-Git-Tag: relicensing~221^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db2b4e93cddfbc8a03172c93a912a0563200cca4;p=dealii.git Use explicit casts. --- 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; };