From 9bfc7706cb60600129e469505c086432688356ec Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Thu, 4 Mar 2021 16:32:41 +0100 Subject: [PATCH] Fix tangential vector of wedge --- include/deal.II/grid/reference_cell.h | 4 ++-- tests/simplex/unit_tangential_vectors_01.output | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.5