From 70c1aaea23d3705fc23b7e5dc9c0ab97188f9c71 Mon Sep 17 00:00:00 2001
From: Gauthier Becker <gauthierbecker@gmail.com>
Date: Fri, 25 Oct 2013 12:55:06 +0000
Subject: [PATCH] Fix compile without RTREE

---
 Geo/boundaryLayersData.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Geo/boundaryLayersData.cpp b/Geo/boundaryLayersData.cpp
index 9adc9e9557..4486848994 100644
--- a/Geo/boundaryLayersData.cpp
+++ b/Geo/boundaryLayersData.cpp
@@ -1172,6 +1172,7 @@ bool rtree_callback(blPoint_rtree *neighbour,void* point){
   return true;
 }
 
+#if defined(HAVE_RTREE)
 bool inExclusionZone_filter (MVertex* p,
 			     std::map <MVertex*, MVertex*> &v2v,
 			     RTree< blPoint_rtree *,double,3,double> &rtree){
@@ -1190,7 +1191,7 @@ bool inExclusionZone_filter (MVertex* p,
 
   return w._tooclose;
 }
-
+#endif
 
 
 void BoundaryLayerColumns::filterPoints(GEntity *ge, double factor)
@@ -1288,7 +1289,9 @@ void BoundaryLayerColumns::filterPoints(GEntity *ge, double factor)
       }
     }
   }
+}
 #else
+{
   Msg::Warning ("Boundary Layer Points cannot be filtered without compiling gmsh with the rtree library");
 #endif
 }
-- 
GitLab