From: abn Date: Mon, 5 Feb 2024 16:48:43 +0000 (+0100) Subject: fixing UnitTet test X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=33e49367f449423a6b92ac93b1c1042cd74daa43;p=tools%2Fmedcoupling.git fixing UnitTet test --- diff --git a/src/INTERP_KERNELTest/UnitTetraIntersectionBaryTest.cxx b/src/INTERP_KERNELTest/UnitTetraIntersectionBaryTest.cxx index 991b93c76..26dd49da2 100644 --- a/src/INTERP_KERNELTest/UnitTetraIntersectionBaryTest.cxx +++ b/src/INTERP_KERNELTest/UnitTetraIntersectionBaryTest.cxx @@ -175,9 +175,9 @@ namespace INTERP_TEST double vol = bary.getVolume(); CPPUNIT_ASSERT( ok ); CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.0103501, vol, 1e-5); - CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.215578 , baryCenter[0], 1e-5 ); - CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.341363 , baryCenter[1], 1e-5 ); - CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.263903 , baryCenter[2], 1e-5 ); + CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.217466 , baryCenter[0], 1e-5 ); + CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.342817 , baryCenter[1], 1e-5 ); + CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.263254 , baryCenter[2], 1e-5 ); } void UnitTetraIntersectionBaryTest::test_UnitTetraIntersectionBary_8() { @@ -193,9 +193,9 @@ namespace INTERP_TEST double vol = bary.getVolume(); CPPUNIT_ASSERT( ok ); CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.0349217, vol, 1e-5); - CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.332275 , baryCenter[0], 1e-2 ); - CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.0565892 , baryCenter[1], 1e-3 ); - CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.308713 , baryCenter[2], 1e-2 ); + CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.3473436, baryCenter[0], 1e-2 ); + CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.0598566, baryCenter[1], 1e-3 ); + CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.2902516, baryCenter[2], 1e-2 ); } void UnitTetraIntersectionBaryTest::test_UnitTetraIntersectionBary_9() {