]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify some code.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 21 Jan 2021 01:52:21 +0000 (18:52 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 21 Jan 2021 01:59:28 +0000 (18:59 -0700)
source/base/qprojector.cc

index 85a997f514aa9bd836b984fd3796979828ef037e..3aaf41e0e60c960ce4c6597f9b6d7e02bc25c323 100644 (file)
@@ -647,8 +647,9 @@ QProjector<3>::project_to_all_faces(
     [](const auto &face, const auto &orientation) -> std::vector<Point<3>> {
     std::array<Point<3>, 3> vertices;
     std::copy_n(face.first.begin(), face.first.size(), vertices.begin());
-    const auto temp = ReferenceCell::Type(ReferenceCell::Type::Tri)
-                        .permute_according_orientation(vertices, orientation);
+    const auto temp =
+      ReferenceCell::Type::Tri.permute_according_orientation(vertices,
+                                                             orientation);
     return std::vector<Point<3>>(temp.begin(),
                                  temp.begin() + face.first.size());
   };
@@ -657,8 +658,9 @@ QProjector<3>::project_to_all_faces(
     [](const auto &face, const auto &orientation) -> std::vector<Point<3>> {
     std::array<Point<3>, 4> vertices;
     std::copy_n(face.first.begin(), face.first.size(), vertices.begin());
-    const auto temp = ReferenceCell::Type(ReferenceCell::Type::Quad)
-                        .permute_according_orientation(vertices, orientation);
+    const auto temp =
+      ReferenceCell::Type::Quad.permute_according_orientation(vertices,
+                                                              orientation);
     return std::vector<Point<3>>(temp.begin(),
                                  temp.begin() + face.first.size());
   };

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.