From: heltai Date: Tue, 23 Apr 2013 13:18:24 +0000 (+0000) Subject: Added instantiation of TriaAccessor<3,3,3>::set_all_manifold_ids and fixed inheritanc... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c400f752772a80a0d5da2feb505bc89fcd3a659;p=dealii-svn.git Added instantiation of TriaAccessor<3,3,3>::set_all_manifold_ids and fixed inheritance of manifold ids for 3d meshes. git-svn-id: https://svn.dealii.org/branches/branch_manifold_id@29374 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/grid/tria_accessor.h b/deal.II/include/deal.II/grid/tria_accessor.h index d8bb9d2833..a046301507 100644 --- a/deal.II/include/deal.II/grid/tria_accessor.h +++ b/deal.II/include/deal.II/grid/tria_accessor.h @@ -3246,6 +3246,8 @@ template <> bool CellAccessor<1,3>::point_inside (const Point<3> &) const; template <> bool CellAccessor<2,3>::point_inside (const Point<3> &) const; // ------------------------------------------------------------------- +template <> void TriaAccessor<3,3,3>::set_all_manifold_ids (const types::manifold_id) const; + #endif // DOXYGEN DEAL_II_NAMESPACE_CLOSE diff --git a/deal.II/source/grid/tria.cc b/deal.II/source/grid/tria.cc index 02d7e5d2bb..99ff9be217 100644 --- a/deal.II/source/grid/tria.cc +++ b/deal.II/source/grid/tria.cc @@ -6458,7 +6458,8 @@ namespace internal new_lines[i]->clear_children(); // interior line new_lines[i]->set_boundary_indicator(numbers::internal_face_boundary_id); - new_lines[i]->set_manifold_id(numbers::flat_manifold_id); + // they inherit geometry description of the hex they belong to + new_lines[i]->set_manifold_id(hex->manifold_id()); } // find some space for the newly to @@ -6478,7 +6479,8 @@ namespace internal new_quads[i]->clear_children(); // interior quad new_quads[i]->set_boundary_indicator (numbers::internal_face_boundary_id); - new_quads[i]->set_manifold_id (numbers::flat_manifold_id); + // they inherit geometry description of the hex they belong to + new_quads[i]->set_manifold_id (hex->manifold_id()); // set all line orientation // flags to true by default, // change this afterwards, if