From 50a95d15ed199b8f41c66e08256d4ffcf53bb3d7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 20 Jan 2021 18:52:21 -0700 Subject: [PATCH] Simplify some code. --- source/base/qprojector.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/base/qprojector.cc b/source/base/qprojector.cc index 85a997f514..3aaf41e0e6 100644 --- a/source/base/qprojector.cc +++ b/source/base/qprojector.cc @@ -647,8 +647,9 @@ QProjector<3>::project_to_all_faces( [](const auto &face, const auto &orientation) -> std::vector> { std::array, 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>(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> { std::array, 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>(temp.begin(), temp.begin() + face.first.size()); }; -- 2.39.5