From: Peter Munch Date: Tue, 7 Jul 2020 21:03:43 +0000 (+0200) Subject: Generalize face_orientation() for 2D general meshes X-Git-Tag: v9.3.0-rc1~1318^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10669%2Fhead;p=dealii.git Generalize face_orientation() for 2D general meshes --- 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)