]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Generalize face_orientation() for 2D general meshes 10669/head
authorPeter Munch <peterrmuench@gmail.com>
Tue, 7 Jul 2020 21:03:43 +0000 (23:03 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 7 Jul 2020 21:03:43 +0000 (23:03 +0200)
include/deal.II/grid/tria_accessor.templates.h

index 19bf9412fb3b129171bd4a27eb084242073a7669..901d5b6a7af85f289fe8e52f3b72e40b6b1b5247 100644 (file)
@@ -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 <int spacedim>
+      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)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.