]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
staffan :
authorvbd <vbd>
Thu, 13 Sep 2007 14:37:53 +0000 (14:37 +0000)
committervbd <vbd>
Thu, 13 Sep 2007 14:37:53 +0000 (14:37 +0000)
* removed problematic assertion

src/INTERP_KERNEL/TransformedTriangle_intersect.cxx

index b198dea92c24a2099eef6da66f288ce0f2e75220..780fa652dad74006d7f7aedd342277ce1daf60af 100644 (file)
@@ -363,9 +363,12 @@ namespace INTERP_UTILS
        // pt[i] = (c1*s1 + c2*s2) / (s1^2 + s2^2)
 
        pt[i] = (c[0] * s[0] + c[1] * s[1]) / denominator;
+       
+       // strange bug with -O2 enabled : assertion fails when we don't have the following
+       // trace - line
        //std::cout << "pt[i] = " << pt[i] << std::endl;
-       assert(pt[i] >= 0.0); // check we are in tetraeder
-       assert(pt[i] <= 1.0);
+       //assert(pt[i] >= 0.0); // check we are in tetraeder
+       //assert(pt[i] <= 1.0);
        
       }
   }