From 1a23c9e9c54f31eef241c380f7d76fc580b9d53a Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sun, 17 Jan 2021 16:03:37 +0100 Subject: [PATCH] Add warning to convert_hypercube_to_simplex_mesh --- include/deal.II/grid/grid_generator.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/deal.II/grid/grid_generator.h b/include/deal.II/grid/grid_generator.h index 5ba2a7a074..d17c7e5d02 100644 --- a/include/deal.II/grid/grid_generator.h +++ b/include/deal.II/grid/grid_generator.h @@ -1927,6 +1927,15 @@ namespace GridGenerator * * @param in_tria The triangulation containing hex elements. * @param out_tria The converted triangulation containing tet elements. + * + * @note No manifold objects are copied by this function: you must + * copy existing manifold objects from @p in_tria to @p out_tria, e.g., + * with the following code: + * @code + * for (const auto i : in_tria.get_manifold_ids()) + * if (i != numbers::flat_manifold_id) + * out_tria.set_manifold(i, in_tria.get_manifold(i)); + * @endcode */ template void -- 2.39.5