From bcc03913ac2c9b9f448a210ed4b6c86d65b4097f Mon Sep 17 00:00:00 2001 From: vbd Date: Thu, 13 Sep 2007 14:37:53 +0000 Subject: [PATCH] staffan : * removed problematic assertion --- src/INTERP_KERNEL/TransformedTriangle_intersect.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/INTERP_KERNEL/TransformedTriangle_intersect.cxx b/src/INTERP_KERNEL/TransformedTriangle_intersect.cxx index b198dea92..780fa652d 100644 --- a/src/INTERP_KERNEL/TransformedTriangle_intersect.cxx +++ b/src/INTERP_KERNEL/TransformedTriangle_intersect.cxx @@ -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); } } -- 2.39.2