From 4e969266240c38bd6226a87c1e1c2622c3f6f5e6 Mon Sep 17 00:00:00 2001
From: Eric Bechet <eric.bechet@ulg.ac.be>
Date: Mon, 3 Dec 2012 10:25:07 +0000
Subject: [PATCH] "corrected" untangleInvalidQuads with no BFGS available.

---
 Mesh/meshGFaceOptimize.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Mesh/meshGFaceOptimize.cpp b/Mesh/meshGFaceOptimize.cpp
index 8f549127a5..cb334c5a17 100644
--- a/Mesh/meshGFaceOptimize.cpp
+++ b/Mesh/meshGFaceOptimize.cpp
@@ -2174,10 +2174,12 @@ void laplaceSmoothing(GFace *gf, int niter, bool infinity_norm)
 }
 
 
+
 int untangleInvalidQuads(GFace *gf, int niter)
 {
   //  return;
   int N = 0;
+#if defined(HAVE_BFGS)
   v2t_cont adj;
   buildVertexToElement(gf->triangles, adj);
   buildVertexToElement(gf->quadrangles, adj);
@@ -2188,6 +2190,7 @@ int untangleInvalidQuads(GFace *gf, int niter)
       }
     }
   }
+#endif
   return N;
 }
 
-- 
GitLab