Salome HOME
Updated copyright comment
[tools/medcoupling.git] / src / INTERP_KERNELTest / UnitTetra3D2DIntersectionTest.cxx
index 366d40ca67df25e9417fe3026c82c6e1d939e8f5..28a91f427e08383f79a6e5652cc7f44ee4c59a51 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -22,6 +22,7 @@
 #include "TetraAffineTransform.hxx"
 #include "InterpolationUtils.hxx"
 #include "SplitterTetra.txx"
+#include "MCIdType.hxx"
 
 #include <iostream>
 
@@ -31,13 +32,13 @@ namespace INTERP_TEST
 {
   struct __MESH_DUMMY
   {
-    typedef int MyConnType;
+    typedef mcIdType MyConnType;
     static const int MY_SPACEDIM=3;
   };
 
   static SplitterTetra<__MESH_DUMMY>* buildSplitterTetra()
   {
-    const int conn[4] = { 0,1,2,3 };
+    const mcIdType conn[4] = { 0,1,2,3 };
 
     const double targetCoords[] = { -20., 0.,10.,
                                     -20.,10.,10.,
@@ -53,7 +54,7 @@ namespace INTERP_TEST
 
   void UnitTetra3D2DIntersectionTest::test_UnitTetra3D2DIntersection_1()
   {
-    const int conn[4] = { 0,1,2 };
+    const mcIdType conn[4] = { 0,1,2 };
 
     const double sourceCoords[] = { -20., 0., 10.,
                                     -12., 0., 10.,
@@ -74,7 +75,7 @@ namespace INTERP_TEST
                                                       precision,
                                                       listOfTetraFacesTreated,
                                                       listOfTetraFacesColinear);
-
+    delete targetTetra;
     CPPUNIT_ASSERT_DOUBLES_EQUAL(40.,surface,precision);
 
     CPPUNIT_ASSERT_EQUAL(4,(int)listOfTetraFacesTreated.size());
@@ -98,7 +99,7 @@ namespace INTERP_TEST
 
   void UnitTetra3D2DIntersectionTest::test_UnitTetra3D2DIntersection_2()
   {
-    const int conn[4] = { 0,1,2,3 };
+    const mcIdType conn[4] = { 0,1,2,3 };
 
     const double sourceCoords[] = { -20., 0., 10.,
                                     -12., 0., 10.,
@@ -120,7 +121,7 @@ namespace INTERP_TEST
                                                       precision,
                                                       listOfTetraFacesTreated,
                                                       listOfTetraFacesColinear);
-
+    delete targetTetra;
     CPPUNIT_ASSERT_DOUBLES_EQUAL(40.,surface,precision);
 
     CPPUNIT_ASSERT_EQUAL(4,(int)listOfTetraFacesTreated.size());
@@ -144,7 +145,7 @@ namespace INTERP_TEST
 
   void UnitTetra3D2DIntersectionTest::test_UnitTetra3D2DIntersection_3()
   {
-    const int conn[4] = { 0,1,2 };
+    const mcIdType conn[4] = { 0,1,2 };
 
     const double sourceCoords[] = { -20., 0., 16.,
                                     -18., 0., 16.,
@@ -165,7 +166,7 @@ namespace INTERP_TEST
                                                       precision,
                                                       listOfTetraFacesTreated,
                                                       listOfTetraFacesColinear);
-
+    delete targetTetra;
     CPPUNIT_ASSERT_DOUBLES_EQUAL(2.5,surface,precision);
 
     CPPUNIT_ASSERT_EQUAL(0,(int)listOfTetraFacesTreated.size());