From 7b37ac83cdb6c33fa1b1e67912ee48c24248f191 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 25 Feb 2006 14:20:07 +0000
Subject: [PATCH] check that we have a least one pt in TooManyElems

---
 Mesh/Generator.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Mesh/Generator.cpp b/Mesh/Generator.cpp
index 68309758c4..05260c2a88 100644
--- a/Mesh/Generator.cpp
+++ b/Mesh/Generator.cpp
@@ -1,4 +1,4 @@
-// $Id: Generator.cpp,v 1.78 2006-02-22 19:39:50 geuzaine Exp $
+// $Id: Generator.cpp,v 1.79 2006-02-25 14:20:07 geuzaine Exp $
 //
 // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
 //
@@ -240,7 +240,7 @@ void Move_SimplexBaseToSimplex(Mesh * M, int dimension)
 }
 
 bool TooManyElements(Mesh *M, int dim){
-  if(CTX.expert_mode) return false;
+  if(CTX.expert_mode || !Tree_Nbr(M->Points)) return false;
 
   // try to detect obvious mistakes in characteristic lenghts (one of
   // the most common cause for erroneous bug reports on the mailing
-- 
GitLab