From 642bbbc2bcf36e1f0d0c5d89d7f9a1f121c879d7 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 18 May 2017 10:29:41 -0500 Subject: [PATCH] Fix 3D face element ordering to maintain positive faces for fixed normals formula --- meshmode/mesh/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py index d3c9c8cf..44dba80b 100644 --- a/meshmode/mesh/__init__.py +++ b/meshmode/mesh/__init__.py @@ -288,10 +288,10 @@ class SimplexElementGroup(MeshElementGroup): ) elif self.dim == 3: return ( - (0, 1, 2), - (0, 3, 1), - (0, 2, 3), - (1, 3, 2) + (0, 2, 1), + (0, 1, 3), + (0, 3, 2), + (1, 2, 3) ) else: raise NotImplementedError("dim=%d" % self.dim) -- GitLab