From 5364529511384c244b9a6f644be94d3c7208f8f9 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 13 Mar 2016 08:58:08 +0000
Subject: [PATCH] fix compile without solver module

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

diff --git a/Mesh/meshGFaceDelaunayInsertion.cpp b/Mesh/meshGFaceDelaunayInsertion.cpp
index df8d26e558..c7458844de 100644
--- a/Mesh/meshGFaceDelaunayInsertion.cpp
+++ b/Mesh/meshGFaceDelaunayInsertion.cpp
@@ -1312,6 +1312,7 @@ void optimalPointFrontalB (GFace *gf,
   // so we have to find t, starting with t = 0
 
 
+#if defined(HAVE_ANN) && defined(HAVE_SOLVER)
   if (gf->geomType() == GEntity::DiscreteDiskSurface){
     discreteDiskFace *ddf = dynamic_cast<discreteDiskFace*> (gf);
     if (ddf){
@@ -1323,6 +1324,8 @@ void optimalPointFrontalB (GFace *gf,
       }
     }
   }
+#endif
+
   if (gf->geomType() == GEntity::CompoundSurface){
     GFaceCompound *gfc = dynamic_cast<GFaceCompound*> (gf);
     if (gfc){
-- 
GitLab