From 05f7801a1740413684eb6721fea951c25610b1c3 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sun, 6 Jul 2014 12:41:05 -0500
Subject: [PATCH] Fix face_vertex_indices to return positively oriented faces

---
 meshmode/mesh/__init__.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py
index f358134..19fe94e 100644
--- a/meshmode/mesh/__init__.py
+++ b/meshmode/mesh/__init__.py
@@ -166,15 +166,15 @@ class SimplexElementGroup(MeshElementGroup):
         elif self.dim == 2:
             return (
                 (0, 1),
+                (2, 0),
                 (1, 2),
-                (0, 2),
                 )
         elif self.dim == 3:
             return (
                 (0, 1, 2),
-                (0, 1, 3),
+                (0, 3, 1),
                 (0, 2, 3),
-                (1, 2, 3)
+                (1, 3, 2)
                 )
         else:
             raise NotImplementedError("dim=%d" % self.dim)
-- 
GitLab