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

clarify HO diagnostics

parent 1c86873e
No related branches found
No related tags found
No related merge requests found
...@@ -1248,12 +1248,12 @@ void checkHighOrderTriangles(const char* cc, GModel *m, ...@@ -1248,12 +1248,12 @@ void checkHighOrderTriangles(const char* cc, GModel *m,
} }
if(!count) return; if(!count) return;
if (minJGlob > 0) if (minJGlob > 0)
Msg::Info("%s : Worst Face Distorsion Mapping %g Gamma %g Nb elem. (0<d<0.2) = %d", Msg::Info("%s: worst distortion = %g (%d elements in ]0, 0.2]); worst gamma = %g",
cc, minJGlob, minGGlob,nbfair ); cc, minJGlob, nbfair, minGGlob);
else else
Msg::Warning("%s : Worst Face Distorsion Mapping %g (%d negative jacobians) " Msg::Warning("%s: worst distortion = %g (avg = %g, %d elements with jac. < 0); "
"Worst Gamma %g Avg Smoothness %g", cc, minJGlob, bad.size(), "worst gamma = %g", cc, minJGlob, avg / (count ? count : 1),
minGGlob, avg / (count ? count : 1)); bad.size(), minGGlob);
} }
void checkHighOrderTetrahedron(const char* cc, GModel *m, void checkHighOrderTetrahedron(const char* cc, GModel *m,
...@@ -1274,14 +1274,13 @@ void checkHighOrderTetrahedron(const char* cc, GModel *m, ...@@ -1274,14 +1274,13 @@ void checkHighOrderTetrahedron(const char* cc, GModel *m,
} }
} }
if(!count) return; if(!count) return;
if (minJGlob < 0)
Msg::Warning("%s : Worst Tetrahedron Smoothness %g (%d negative jacobians) " if (minJGlob > 0)
"Avg Smoothness %g", cc, minJGlob, bad.size(), Msg::Info("%s: worst distortion = %g (%d elements in ]0, 0.2])",
avg / (count ? count : 1)); cc, minJGlob, nbfair);
else else
Msg::Info("%s : Worst Tetrahedron Smoothness %g (%d negative jacobians) " Msg::Warning("%s: worst distortion = %g (avg = %g, %d elements with jac. < 0)",
"Avg Smoothness %g", cc, minJGlob, bad.size(), cc, minJGlob, avg / (count ? count : 1), bad.size());
avg / (count ? count : 1));
} }
void getMeshInfoForHighOrder(GModel *gm, int &meshOrder, bool &complete, void getMeshInfoForHighOrder(GModel *gm, int &meshOrder, bool &complete,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment