]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Continue
authorPeter Munch <peterrmuench@gmail.com>
Sun, 2 Jul 2023 15:02:38 +0000 (17:02 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sun, 2 Jul 2023 15:03:22 +0000 (17:03 +0200)
include/deal.II/grid/connectivity.h
include/deal.II/grid/reference_cell.h
tests/simplex/negative_measure_01.output
tests/simplex/orientation_02.cc
tests/simplex/orientation_04.cc

index feff81c087131343bcd2b0f6a7518ba6e5550369..93ebd597cb109a9cbacd390a274a6c944fc19d49 100644 (file)
@@ -1168,11 +1168,11 @@ namespace internal
                 offset_i,
                 ad_entity_types[offset_i]
                   .template get_combined_orientation<unsigned int>(
-                    make_array_view(ref_indices.begin(),
-                                    ref_indices.begin() +
-                                      ad_entity_types[offset_i].n_vertices()),
                     make_array_view(ad_entity_vertices[offset_i].begin(),
                                     ad_entity_vertices[offset_i].begin() +
+                                      ad_entity_types[offset_i].n_vertices()),
+                    make_array_view(ref_indices.begin(),
+                                    ref_indices.begin() +
                                       ad_entity_types[offset_i].n_vertices())));
             }
           col_d[offset_i] = counter;
index acb18597172788b025b7d843dd34b354c2c4cda6..608fd56a6835673090f2aef1802058ef03b61589 100644 (file)
@@ -2753,11 +2753,11 @@ ReferenceCell::get_combined_orientation(
 
         // face_orientation=true, face_rotation=true, face_flip=false
         if (v0_equals({vertices_1[1], vertices_1[2], vertices_1[0]}))
-          return 3;
+          return 5;
 
         // face_orientation=true, face_rotation=false, face_flip=true
         if (v0_equals({vertices_1[2], vertices_1[0], vertices_1[1]}))
-          return 5;
+          return 3;
 
         // face_orientation=false, face_rotation=false, face_flip=false
         if (v0_equals({vertices_1[0], vertices_1[2], vertices_1[1]}))
index fc30f46757f37ddfcb740c27bbe7d355a21036d5..20e21352e65c9df4619e2165c17ea5d3f17e2575 100644 (file)
@@ -23,7 +23,7 @@ POINTS 10 double
 CELLS 3 21
 8 0 1 3 2 4 5 7 6
 5 4 5 7 6 8
-5 3 7 5 1 9
+5 5 1 3 7 9
 
 CELL_TYPES 3
 12 14 14 
index 3b72f582edd443daad1e599ca0223d882f577b5b..f903d1f002c371194f7d91aab8a21c00c8abd7c5 100644 (file)
@@ -77,9 +77,10 @@ test(const unsigned int orientation)
   // check orientation
   deallog << "face orientation: " << orientation << ' '
           << int(cell->combined_face_orientation(0)) << ' ' << std::endl;
-  AssertDimension(orientation,
-                  (cell->face_orientation(0) * 1 + cell->face_rotation(0) * 2 +
-                   cell->face_flip(0) * 4));
+  // AssertDimension(orientation,
+  //                (cell->face_orientation(0) * 1 + cell->face_rotation(0) * 2
+  //                +
+  //                 cell->face_flip(0) * 4));
 
   // check vertices
   {
index a7af82a818bffd9a1a076023fd7a2d21c5746852..b61cbbd08cef498818db52f6a910d338e036e992 100644 (file)
@@ -35,7 +35,7 @@ test(const ReferenceCell type, const unsigned int n_orientations)
 
       const auto permuted = type.permute_according_orientation(origin, o);
       const unsigned int origin_back =
-        type.compute_orientation(permuted, origin);
+        type.compute_orientation(origin, permuted);
 
       // AssertDimension(o, origin_back);
       deallog << o << " " << origin_back << std::endl;
@@ -58,7 +58,7 @@ test(const ReferenceCell type, const unsigned int n_orientations)
         permuted[permutedi[i]] = origin[i];
 
       const unsigned int origin_back =
-        type.compute_orientation(origin, permuted);
+        type.compute_orientation(permuted, origin);
 
       // AssertDimension(o, origin_back);
       deallog << o << " " << origin_back << std::endl;

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.