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

err->warn

parent da69ab4a
No related branches found
No related tags found
No related merge requests found
......@@ -183,12 +183,12 @@ SVector3 gmshFace::normal(const SPoint2 &param) const
angle += angle_plan(v, v1, v2, n);
}
}
if(fabs(angle) < 0.5){
if(fabs(angle) < 0.5){ // we're outside
NP *= 2;
Msg::Debug("Could not compute normal of surface %d - retrying with %d points",
tag(), NP);
if(tries > 10){
Msg::Error("Could not compute normal of surface %d", tag());
Msg::Warning("Could not compute normal of surface %d", tag());
return SVector3(n[0], n[1], n[2]);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment