From b32529254f7857e19e37cfb46900c8628e510d73 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 16 Mar 2016 13:44:25 +0000 Subject: [PATCH] make old code work again --- Mesh/meshGRegionBoundaryRecovery.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Mesh/meshGRegionBoundaryRecovery.cpp b/Mesh/meshGRegionBoundaryRecovery.cpp index 91996a1975..62b27c30e5 100644 --- a/Mesh/meshGRegionBoundaryRecovery.cpp +++ b/Mesh/meshGRegionBoundaryRecovery.cpp @@ -5,6 +5,7 @@ #include <stdio.h> #include <assert.h> +#include "GmshConfig.h" #include "meshGRegionBoundaryRecovery.h" #include "meshGRegionDelaunayInsertion.h" #include "robustPredicates.h" @@ -16,6 +17,16 @@ #include "MTetrahedron.h" #include "OS.h" +#if defined(HAVE_TETGEN) + +bool meshGRegionBoundaryRecovery(GRegion *gr) +{ + Msg::Error("Should not call meshGRegionBoundaryRecovery with Tetgen"); + return false; +} + +#else + #define REAL double // dummy tetgenio class (not used) @@ -857,3 +868,5 @@ bool tetgenmesh::reconstructmesh(void *p) return returnValue; } + +#endif -- GitLab