From: Wolfgang Bangerth Date: Thu, 21 Jan 2021 01:52:21 +0000 (-0700) Subject: Simplify some code. X-Git-Tag: v9.3.0-rc1~586^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50a95d15ed199b8f41c66e08256d4ffcf53bb3d7;p=dealii.git Simplify some code. --- 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()); };