]> https://gitweb.dealii.org/ - dealii.git/commitdiff
ReferenceCell: remove two more 1d workarounds. 18349/head
authorDavid Wells <drwells@email.unc.edu>
Thu, 10 Apr 2025 11:54:55 +0000 (07:54 -0400)
committerDavid Wells <drwells@email.unc.edu>
Thu, 10 Apr 2025 11:54:55 +0000 (07:54 -0400)
include/deal.II/grid/reference_cell.h

index 3dd718f91ecf570f1ec445ac780940a7430f3768..8d3cf0f0f3258b068eba6d9e99f0b0ad43115b18 100644 (file)
@@ -3602,12 +3602,7 @@ ReferenceCell::get_combined_orientation(
   switch (this->kind)
     {
       case ReferenceCells::Vertex:
-        // TODO: we can get rid of this special-case and use
-        // vertex_vertex_permutations once we make 0 the default orientation.
-        (void)vertex_vertex_permutations;
-        if (vertices_0[0] == vertices_1[0])
-          return numbers::default_geometric_orientation;
-        break;
+        return compute_orientation(vertex_vertex_permutations);
       case ReferenceCells::Line:
         return compute_orientation(line_vertex_permutations);
       case ReferenceCells::Triangle:
@@ -3669,9 +3664,7 @@ ReferenceCell::permute_by_combined_orientation(
   switch (this->kind)
     {
       case ReferenceCells::Vertex:
-        // TODO: we can get rid of this special-case and use
-        // vertex_vertex_permutations once we make 0 the default orientation.
-        std::copy(vertices.begin(), vertices.end(), result.begin());
+        permute(vertex_vertex_permutations);
         break;
       case ReferenceCells::Line:
         permute(line_vertex_permutations);

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.