From fa0029875b0db300736973cc89ab3fb332e71c53 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 30 Sep 2003 23:15:09 +0000 Subject: [PATCH] Fix mesh_3d_{7,11} git-svn-id: https://svn.dealii.org/trunk@8077 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/tria.cc | 35 +++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/grid/tria.cc b/deal.II/deal.II/source/grid/tria.cc index 9631b18dcc..d3663b6e9b 100644 --- a/deal.II/deal.II/source/grid/tria.cc +++ b/deal.II/deal.II/source/grid/tria.cc @@ -6655,8 +6655,39 @@ Triangulation<3>::execute_refinement () // to swap // subfaces // to account - // for that - const bool orient = neighbor->get_face_orientation(face); + // for + // that. the + // same + // happens if + // our own + // face is + // swapped + // + // (?? I + // actually + // don't + // understand + // why we + // need to + // ask the + // present + // face as + // well, but + // it fixes + // the + // mesh_3d_7 + // and + // mesh_3d_11 + // testcases, + // so it + // can't be + // all + // wrong...) + const bool orient + = (neighbor->get_face_orientation(nb_nb) + && + hex->get_face_orientation(face)); + static const unsigned int child_switch_table[GeometryInfo::subfaces_per_face] = { 0, 3, 2, 1 }; -- 2.39.5