Salome HOME
Fix regressions
[modules/smesh.git] / src / StdMeshers / StdMeshers_ViscousLayers.cxx
index 34762cc2a35de3694c7176d5a15f5823daa31909..db5469ea228a823a843cc75993ed49714f634883 100644 (file)
@@ -83,7 +83,7 @@
 #include <cmath>
 #include <limits>
 
-//#define __myDEBUG
+#define __myDEBUG
 
 using namespace std;
 
@@ -3218,7 +3218,7 @@ bool _ViscousBuilder::inflate(_SolidData& data)
       }
     }
     avgThick /= data._edges.size();
-    debugMsg( "-- Thickness " << avgThick*100 << "% reached" );
+    debugMsg( "-- Thickness " << curThick << " ("<< avgThick*100 << "%) reached" );
 
     if ( distToIntersection < tgtThick*avgThick*1.5 )
     {
@@ -3247,7 +3247,7 @@ bool _ViscousBuilder::inflate(_SolidData& data)
           ( new SMESH_ComputeError (COMPERR_WARNING,
                                     SMESH_Comment("Thickness ") << tgtThick <<
                                     " of viscous layers not reached,"
-                                    " average reached thickness is " << avgThick*100 << "%."));
+                                    " average reached thickness is " << avgThick*tgtThick));
     }