From 7143c942010ba5b20a84153e64d2f178f43cb35d Mon Sep 17 00:00:00 2001
From: Koen Hillewaert <koen.hillewaert@cenaero.be>
Date: Fri, 22 Aug 2008 16:36:33 +0000
Subject: [PATCH] bug fix for q=3

---
 Mesh/HighOrder.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Mesh/HighOrder.cpp b/Mesh/HighOrder.cpp
index 8ca729de84..041d341429 100644
--- a/Mesh/HighOrder.cpp
+++ b/Mesh/HighOrder.cpp
@@ -628,7 +628,8 @@ void getFaceVertices(GFace *gf, MElement *ele, std::vector<MVertex*> &vf,
 
 void reorientTrianglePoints(std::vector<MVertex*>& vtcs,int orientation,bool swap) {
 
-
+  if (vtcs.size() == 1) return;
+  
   size_t nbPts = vtcs.size();
 
   if (nbPts > 3) Msg::Error("Interior face nodes reorientation not supported for order > 4");
-- 
GitLab