]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explicitly use the combined orientation.
authorDavid Wells <drwells@email.unc.edu>
Sat, 13 Apr 2024 22:11:44 +0000 (18:11 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sat, 20 Apr 2024 17:40:07 +0000 (13:40 -0400)
include/deal.II/grid/tria_accessor.templates.h
source/grid/tria.cc

index 6fd99cee448fedbad57a40634ffe0837adc93d37..79932777cbb1b6e1909473bdd86efa2992eb572e 100644 (file)
@@ -973,7 +973,9 @@ namespace internal
             corner);
         const auto vertex_within_line_index =
           accessor.reference_cell().standard_to_real_face_vertex(
-            vertex_index, line_index, accessor.line_orientation(line_index));
+            vertex_index,
+            line_index,
+            accessor.combined_face_orientation(line_index));
 
         return accessor.line(line_index)
           ->vertex_index(vertex_within_line_index);
index de3681962d4333530b08605532e3bd16e89feae5..02b724666e63b6dd3a067a696fd04cc8370140e5 100644 (file)
@@ -6425,7 +6425,11 @@ namespace internal
                             s.insert(i);
 #endif
 
-                          new_quad->set_line_orientation(f, orientation);
+                          new_quad->set_line_orientation(
+                            f,
+                            orientation ==
+                              ReferenceCell::
+                                default_combined_face_orientation());
                         }
 #ifdef DEBUG
                       AssertDimension(s.size(), 3);
@@ -6972,7 +6976,11 @@ namespace internal
                                 make_array_view(vertices_0),
                                 make_array_view(vertices_1));
 
-                            new_quad->set_line_orientation(l, orientation);
+                            new_quad->set_line_orientation(
+                              l,
+                              orientation ==
+                                ReferenceCell::
+                                  default_combined_face_orientation());
 
                             // on a hex, inject the status of the current line
                             // also to the line on the other quad along the
@@ -6981,7 +6989,11 @@ namespace internal
                                 ReferenceCells::Hexahedron)
                               new_quads[representative_lines[q % 4][1] + q -
                                         (q % 4)]
-                                ->set_line_orientation(l, orientation);
+                                ->set_line_orientation(
+                                  l,
+                                  orientation ==
+                                    ReferenceCell::
+                                      default_combined_face_orientation());
                           }
                       }
                   }

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.