From 72065898b04cc3a778cb9c17a0ecc92b0ff5be13 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 7 Dec 2014 17:21:19 +0000 Subject: [PATCH] better test --- Geo/GModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp index 3f3c9ef060..89df670316 100644 --- a/Geo/GModel.cpp +++ b/Geo/GModel.cpp @@ -1500,7 +1500,7 @@ void GModel::checkMeshCoherence(double tolerance) double vol = e->getVolume(); if(vol < 0) Msg::Warning("Element %d has negative volume", e->getNum()); - else if(vol < 1e-12) + else if(vol < eps * eps * eps) Msg::Warning("Element %d has zero volume", e->getNum()); SPoint3 p = e->barycenter(); vertices.push_back(new MVertex(p.x(), p.y(), p.z())); -- GitLab