]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Be explicit about the type used.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 27 Dec 2023 22:41:34 +0000 (15:41 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 27 Dec 2023 22:41:45 +0000 (15:41 -0700)
source/grid/tria_description.cc

index e5af3fad6624fee55f7c564616b36a93fb5de879..f9949f09d6b4142d4633e70d2c8b40cff8ed3fd7 100644 (file)
@@ -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<unsigned int>(
+          return static_cast<types::subdomain_id>(
             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<unsigned int>(
+          return static_cast<types::subdomain_id>(
             partitions_mg[cell->level()][cell->global_level_cell_index()]);
         else
           return numbers::artificial_subdomain_id;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.