From: Peter Munch Date: Thu, 4 Mar 2021 15:32:41 +0000 (+0100) Subject: Fix tangential vector of wedge X-Git-Tag: v9.3.0-rc1~375^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11848%2Fhead;p=dealii.git Fix tangential vector of wedge --- diff --git a/include/deal.II/grid/reference_cell.h b/include/deal.II/grid/reference_cell.h index c2a2a563ba..0c45adc3be 100644 --- a/include/deal.II/grid/reference_cell.h +++ b/include/deal.II/grid/reference_cell.h @@ -1672,11 +1672,11 @@ ReferenceCell::unit_tangential_vectors(const unsigned int face_no, AssertIndexRange(face_no, 5); static const ndarray, 5, 2> table = { {{{Point(0, 1, 0), Point(1, 0, 0)}}, + {{Point(1, 0, 0), Point(0, 1, 0)}}, {{Point(1, 0, 0), Point(0, 0, 1)}}, {{Point(-1 / std::sqrt(2.0), +1 / std::sqrt(2.0), 0), Point(0, 0, 1)}}, - {{Point(0, 0, 1), Point(0, 1, 0)}}, - {{Point(1, 0, 0), Point(0, 0, 1)}}}}; + {{Point(0, 0, 1), Point(0, 1, 0)}}}}; return table[face_no][i]; } diff --git a/tests/simplex/unit_tangential_vectors_01.output b/tests/simplex/unit_tangential_vectors_01.output index 9684a9bcd0..2064c7733b 100644 --- a/tests/simplex/unit_tangential_vectors_01.output +++ b/tests/simplex/unit_tangential_vectors_01.output @@ -47,6 +47,9 @@ DEAL:: DEAL::0.00000 0.00000 -1.00000 DEAL::0.00000 1.00000 0.00000 DEAL::1.00000 0.00000 0.00000 +DEAL::0.00000 0.00000 1.00000 +DEAL::1.00000 0.00000 0.00000 +DEAL::0.00000 1.00000 0.00000 DEAL::0.00000 -1.00000 0.00000 DEAL::1.00000 0.00000 0.00000 DEAL::0.00000 0.00000 1.00000 @@ -56,9 +59,6 @@ DEAL::0.00000 0.00000 1.00000 DEAL::-1.00000 0.00000 0.00000 DEAL::0.00000 0.00000 1.00000 DEAL::0.00000 1.00000 0.00000 -DEAL::0.00000 -1.00000 0.00000 -DEAL::1.00000 0.00000 0.00000 -DEAL::0.00000 0.00000 1.00000 DEAL:: DEAL::-1.00000 0.00000 0.00000 DEAL::0.00000 -1.00000 0.00000