From: Daniel Arndt Date: Mon, 1 Jan 2024 21:04:00 +0000 (-0500) Subject: Merge pull request #16374 from bangerth/dev-1 X-Git-Tag: relicensing~211 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e823506dfe71448f2213b779cf373ea7a7ff5124;p=dealii.git Merge pull request #16374 from bangerth/dev-1 Convert CreateDescriptionFromTriangulationHelper into a function. --- e823506dfe71448f2213b779cf373ea7a7ff5124 diff --cc source/grid/tria_description.cc index dd55686641,45fe8b95ce..7f94c64d59 --- a/source/grid/tria_description.cc +++ b/source/grid/tria_description.cc @@@ -1079,22 -1031,14 +1054,15 @@@ namespace TriangulationDescriptio }; const auto level_subdomain_id_function = - [&construct_multigrid, &partitions_mg](const auto &cell) { - if (construct_multigrid && (cell->is_artificial_on_level() == false)) - return static_cast( - partitions_mg[cell->level()][cell->global_level_cell_index()]); - else - return numbers::artificial_subdomain_id; - }; + [&construct_multigrid, + &partitions_mg](const auto &cell) -> types::subdomain_id { + if (construct_multigrid && (cell->is_artificial_on_level() == false)) + return static_cast( + partitions_mg[cell->level()][cell->global_level_cell_index()]); + else + return numbers::artificial_subdomain_id; + }; - CreateDescriptionFromTriangulationHelper helper( - tria, - subdomain_id_function, - level_subdomain_id_function, - tria.get_communicator(), - settings); - // create a description (locally owned cell and a layer of ghost cells // and all their parents) std::vector> descriptions_per_rank;