]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
fixing UnitTet test
authorabn <adrien.bruneton@cea.fr>
Mon, 5 Feb 2024 16:48:43 +0000 (17:48 +0100)
committerabn <adrien.bruneton@cea.fr>
Mon, 5 Feb 2024 16:48:43 +0000 (17:48 +0100)
src/INTERP_KERNELTest/UnitTetraIntersectionBaryTest.cxx

index 991b93c76b04fc42c676791a7ed61bda6cbe10a1..26dd49da29d457e4639edbd0b9e64cbee8822053 100644 (file)
@@ -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()
   {