Skip to content
Snippets Groups Projects
Commit 4c36c033 authored by Amaury Johnen's avatar Amaury Johnen
Browse files

improve printed statistics

parent df2e4d38
Branches
Tags
No related merge requests found
...@@ -73,7 +73,9 @@ std::string GMSH_AnalyseCurvedMeshPlugin::getHelp() const ...@@ -73,7 +73,9 @@ std::string GMSH_AnalyseCurvedMeshPlugin::getHelp() const
"Parameters:\n" "Parameters:\n"
"\n" "\n"
"- Jacobian determinant = {0, 1}\n" "- Jacobian determinant = {0, 1}\n"
"\n"
"- IGE measure = {0, 1}\n" "- IGE measure = {0, 1}\n"
"\n"
"- ICN measure = {0, 1}\n" "- ICN measure = {0, 1}\n"
"\n" "\n"
"- Hidding threshold = [0, 1]: Hides all element for which min(mu) is " "- Hidding threshold = [0, 1]: Hides all element for which min(mu) is "
...@@ -454,14 +456,14 @@ void GMSH_AnalyseCurvedMeshPlugin::_printStatJacobian() ...@@ -454,14 +456,14 @@ void GMSH_AnalyseCurvedMeshPlugin::_printStatJacobian()
avgratJ /= count; avgratJ /= count;
avgratJc /= countc; avgratJc /= countc;
Msg::Info("Min Jac. det. (minJ): %6.3g, %6.3g, %6.3g (= min, avg, max)", Msg::Info("minJ = %8.3g, %8.3g, %8.3g (min, avg, max)",
infminJ, avgminJ, supminJ); infminJ, avgminJ, supminJ);
Msg::Info("Ratio minJ/maxJ : %6.3f, %6.3f, %6.3f (= worst, avg, best)",
infratJ, avgratJ, supratJ);
if (countc && countc < count) if (countc && countc < count)
Msg::Info(" (avg = %.3f" Msg::Info("minJ/maxJ = %8.3f (avg on the %d "
" on the %d non-constant elements)", "non-constant elements)",
avgratJc, countc); avgratJc, countc);
Msg::Info("minJ/maxJ = %8.3f, %8.3f, %8.3f (worst, avg, best)",
infratJ, avgratJ, supratJ);
} }
void GMSH_AnalyseCurvedMeshPlugin::_printStatIGE() void GMSH_AnalyseCurvedMeshPlugin::_printStatIGE()
...@@ -480,8 +482,8 @@ void GMSH_AnalyseCurvedMeshPlugin::_printStatIGE() ...@@ -480,8 +482,8 @@ void GMSH_AnalyseCurvedMeshPlugin::_printStatIGE()
} }
avgminS /= _data.size(); avgminS /= _data.size();
Msg::Info("IGE : %6.3f, %6.3f, %6.3f (= worst, avg, best)", Msg::Info("IGE = %8.3f, %8.3f, %8.3f (worst, avg, best)",
infminS, avgminS, supminS); infminS, avgminS, supminS);
} }
void GMSH_AnalyseCurvedMeshPlugin::_printStatICN() void GMSH_AnalyseCurvedMeshPlugin::_printStatICN()
...@@ -500,8 +502,8 @@ void GMSH_AnalyseCurvedMeshPlugin::_printStatICN() ...@@ -500,8 +502,8 @@ void GMSH_AnalyseCurvedMeshPlugin::_printStatICN()
} }
avgminI /= _data.size(); avgminI /= _data.size();
Msg::Info("ICN : %6.3f, %6.3f, %6.3f (= worst, avg, best)", Msg::Info("ICN = %8.3f, %8.3f, %8.3f (worst, avg, best)",
infminI, avgminI, supminI); infminI, avgminI, supminI);
} }
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment