};
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<unsigned int>(
- 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<types::subdomain_id>(
+ partitions_mg[cell->level()][cell->global_level_cell_index()]);
+ else
+ return numbers::artificial_subdomain_id;
+ };
- CreateDescriptionFromTriangulationHelper<dim, spacedim> 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<DescriptionTemp<dim, spacedim>> descriptions_per_rank;