From: Wolfgang Bangerth Date: Wed, 3 Feb 2021 03:44:44 +0000 (-0700) Subject: Simplify a computation. X-Git-Tag: v9.3.0-rc1~523^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11663%2Fhead;p=dealii.git Simplify a computation. --- diff --git a/include/deal.II/grid/reference_cell.h b/include/deal.II/grid/reference_cell.h index 892fec8364..be338585b1 100644 --- a/include/deal.II/grid/reference_cell.h +++ b/include/deal.II/grid/reference_cell.h @@ -698,13 +698,8 @@ namespace ReferenceCell { Assert(*this == Tri, ExcInternalError()); - const auto tangential = unit_tangential_vectors(face_no, 0); - - Tensor<1, dim> result; - result[0] = tangential[1]; - result[1] = -tangential[0]; - - return result; + // Return the rotated vector + return cross_product_2d(unit_tangential_vectors(face_no, 0)); } else if (dim == 3) {