]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust tests. 11556/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 20 Jan 2021 02:52:03 +0000 (19:52 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 20 Jan 2021 03:00:03 +0000 (20:00 -0700)
tests/simplex/orientation_01.cc
tests/simplex/orientation_02.cc
tests/simplex/unit_tangential_vectors_01.cc

index e27a6590e26973595f7cb6cc068a021bffcd11fd..8b43942a7235518726098b86884e932643e2520c 100644 (file)
@@ -33,10 +33,9 @@ test(const ReferenceCell::Type type, const unsigned int n_orientations)
       for (unsigned int i = 0; i < n_points; ++i)
         origin[i] = i;
 
-      const auto permuted =
-        ReferenceCell::permute_according_orientation(type, origin, o);
+      const auto permuted = type.permute_according_orientation(origin, o);
       const unsigned int origin_back =
-        ReferenceCell::compute_orientation(type, permuted, origin);
+        type.compute_orientation(permuted, origin);
 
       AssertDimension(o, origin_back);
     }
index b2f6378ab790929dcad12f6afc37170b18530197..c81eb0903f629e796ead306513da953e938f211a 100644 (file)
@@ -43,12 +43,14 @@ test(const unsigned int orientation)
   }
 
   {
-    const auto &face     = dummy.begin()->face(face_no);
-    const auto  permuted = ReferenceCell::permute_according_orientation(
-      ReferenceCell::Type::Tri,
-      std::array<unsigned int, 3>{
-        {face->vertex_index(0), face->vertex_index(1), face->vertex_index(2)}},
-      orientation);
+    const auto &face = dummy.begin()->face(face_no);
+    const auto  permuted =
+      ReferenceCell::Type(ReferenceCell::Type::Tri)
+        .permute_according_orientation(
+          std::array<unsigned int, 3>{{face->vertex_index(0),
+                                       face->vertex_index(1),
+                                       face->vertex_index(2)}},
+          orientation);
 
     auto direction =
       cross_product_3d(vertices[permuted[1]] - vertices[permuted[0]],
index 99f5a36ba465423688af05d51419ead4b05ca3ea..6b705a6dacc4bf6978131cea34576f2b6146e69b 100644 (file)
@@ -33,12 +33,13 @@ test(const ReferenceCell::Type &reference_cell)
   for (const auto face_no :
        ReferenceCell::internal::Info::get_cell(reference_cell).face_indices())
     {
-      deallog << reference_cell.unit_normal_vectors<dim>(face_no) << std::endl;
+      deallog << ReferenceCell::unit_normal_vectors<dim>(reference_cell,
+                                                         face_no)
+              << std::endl;
 
       for (unsigned int i = 0; i < dim - 1; ++i)
-        deallog << ReferenceCell::unit_tangential_vectors<dim>(reference_cell,
-                                                               face_no,
-                                                               i)
+        deallog << reference_cell.template unit_tangential_vectors<dim>(face_no,
+                                                                        i)
                 << std::endl;
     }
   deallog << 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.