From d3c40288de9414cb8580827fdae4cae951fa5f26 Mon Sep 17 00:00:00 2001
From: Amaury Johnan <amjohnen@gmail.com>
Date: Mon, 23 Aug 2010 08:55:01 +0000
Subject: [PATCH] fix compile

---
 Geo/GFaceCompound.cpp | 13 +++++++------
 Mesh/Field.cpp        |  2 ++
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/Geo/GFaceCompound.cpp b/Geo/GFaceCompound.cpp
index 3361f31aff..f3411af952 100644
--- a/Geo/GFaceCompound.cpp
+++ b/Geo/GFaceCompound.cpp
@@ -1127,12 +1127,13 @@ bool GFaceCompound::parametrize_conformal_spectral() const
 #if !defined(HAVE_PETSC) && !defined(HAVE_SLEPC)
 {
 
- Msg::Error("-----------------------------------------------------------------------------!");
- Msg::Error("Gmsh should be compiled with petsc and slepc for using the conformal map     !");
- Msg::Error("Switch to harmonic map or see doc on the wiki for installing petsc and slepc !");
- Msg::Error("https://geuz.org/trac/gmsh/wiki/STLRemeshing (username:gmsh,passwd:gmsh)     !");
- Msg::Error("-----------------------------------------------------------------------------!");
- Msg::Exit(1);
+  Msg::Error("-----------------------------------------------------------------------------!");
+  Msg::Error("Gmsh should be compiled with petsc and slepc for using the conformal map     !");
+  Msg::Error("Switch to harmonic map or see doc on the wiki for installing petsc and slepc !");
+  Msg::Error("https://geuz.org/trac/gmsh/wiki/STLRemeshing (username:gmsh,passwd:gmsh)     !");
+  Msg::Error("-----------------------------------------------------------------------------!");
+  Msg::Exit(1);
+  return false;
 
 }
 #else
diff --git a/Mesh/Field.cpp b/Mesh/Field.cpp
index 7ebaccaf33..5a9a5d9cfe 100644
--- a/Mesh/Field.cpp
+++ b/Mesh/Field.cpp
@@ -1653,7 +1653,9 @@ FieldManager::FieldManager()
 {
   map_type_name["Structured"] = new FieldFactoryT<StructuredField>();
   map_type_name["Threshold"] = new FieldFactoryT<ThresholdField>();
+#if defined(HAVE_ANN)
   map_type_name["BoundaryLayer"] = new FieldFactoryT<BoundaryLayerField>();
+#endif
   map_type_name["Box"] = new FieldFactoryT<BoxField>();
   map_type_name["Cylinder"] = new FieldFactoryT<CylinderField>();
   map_type_name["LonLat"] = new FieldFactoryT<LonLatField>();
-- 
GitLab