Skip to content
Snippets Groups Projects
Commit 72065898 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

better test

parent e534c6fc
No related branches found
No related tags found
No related merge requests found
...@@ -1500,7 +1500,7 @@ void GModel::checkMeshCoherence(double tolerance) ...@@ -1500,7 +1500,7 @@ void GModel::checkMeshCoherence(double tolerance)
double vol = e->getVolume(); double vol = e->getVolume();
if(vol < 0) if(vol < 0)
Msg::Warning("Element %d has negative volume", e->getNum()); 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()); Msg::Warning("Element %d has zero volume", e->getNum());
SPoint3 p = e->barycenter(); SPoint3 p = e->barycenter();
vertices.push_back(new MVertex(p.x(), p.y(), p.z())); vertices.push_back(new MVertex(p.x(), p.y(), p.z()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment