From ffccb314dbb2a002fc6c39bcdcc22962295282b8 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Tue, 7 Jul 2020 23:03:43 +0200 Subject: [PATCH] Generalize face_orientation() for 2D general meshes --- include/deal.II/grid/tria_accessor.templates.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index 19bf9412fb..901d5b6a7a 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -585,13 +585,22 @@ namespace internal /* * Default implementation used in 1d and 2d * - * In 1d and 2d, face_orientation is always true + * In 1d, face_orientation is always true */ return true; } + template + inline static bool + face_orientation(const TriaAccessor<2, 2, spacedim> &accessor, + const unsigned int face) + { + return line_orientation(accessor, face); + } + + inline static bool face_orientation(const TriaAccessor<3, 3, 3> &accessor, const unsigned int face) -- 2.39.5