From 8c3b4993f1d8821b382a1c3b9b7910e981876dca Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 27 Feb 2002 17:15:22 +0000 Subject: [PATCH] Add error mesg in compareface --- Mesh/Simplex.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mesh/Simplex.cpp b/Mesh/Simplex.cpp index 91b789e8fa..084019e08e 100644 --- a/Mesh/Simplex.cpp +++ b/Mesh/Simplex.cpp @@ -1,4 +1,4 @@ -// $Id: Simplex.cpp,v 1.20 2001-12-03 08:41:44 geuzaine Exp $ +// $Id: Simplex.cpp,v 1.21 2002-02-27 17:15:22 geuzaine Exp $ #include "Gmsh.h" #include "Numeric.h" @@ -756,6 +756,10 @@ int compareFace (const void *a, const void *b){ q = (Face *) a; w = (Face *) b; + + if (!q->V[0] || !w->V[0]) + Msg(FATAL, "Bad face (are you trying to generate hexahedra with a Delaunay?!)"); + if (q->V[0]->Num > w->V[0]->Num) return (1); if (q->V[0]->Num < w->V[0]->Num) -- GitLab