]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix mesh_3d_{7,11}
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 Sep 2003 23:15:09 +0000 (23:15 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 Sep 2003 23:15:09 +0000 (23:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@8077 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc

index 9631b18dcce6c4f023faad5f96d392801d707717..d3663b6e9b17d4816e26dc5bfe82bc5496bf5c85 100644 (file)
@@ -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<dim>::subfaces_per_face]
                           = { 0, 3, 2, 1 };

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.