From c149b639ab32c82e0aabdf01bad0fb8f14414f93 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 28 Nov 2016 11:39:01 +0000 Subject: [PATCH] don't hang if no elements --- Geo/GFaceCompound.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Geo/GFaceCompound.cpp b/Geo/GFaceCompound.cpp index 0b09589ee0..7d653a3207 100644 --- a/Geo/GFaceCompound.cpp +++ b/Geo/GFaceCompound.cpp @@ -2780,6 +2780,7 @@ void GFaceCompound::coherencePatches() const void GFaceCompound::coherenceNormals() { + if(!getNumMeshElements()) return; Msg::Info("Re-orient all %d face normals coherently", getNumMeshElements()); std::map<MEdge, std::set<MElement*>, Less_Edge > edge2elems; -- GitLab