]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
suppression of useless swigged CheckAndPreparePermutation
authorageay <ageay>
Thu, 13 Jun 2013 14:56:59 +0000 (14:56 +0000)
committerageay <ageay>
Thu, 13 Jun 2013 14:56:59 +0000 (14:56 +0000)
src/MEDCoupling_Swig/MEDCouplingBasicsTest.py
src/MEDCoupling_Swig/MEDCouplingMemArray.i

index 6fe9040bc70e947fec8124455cefee7360be75e8..b4a0580139f015591c08533a920640667af07d78 100644 (file)
@@ -12948,6 +12948,15 @@ class MEDCouplingBasicsTest(unittest.TestCase):
         a2=a.deepCpy() ;  a2[ids]-=b[ids] ; self.assertTrue(a2.isEqual(a,1e-15))
         pass
 
+    def testSwig2CheckAndPreparePermutation1(self):
+        a=DataArrayInt([10003,9999999,5,67])
+        self.assertTrue(a.checkAndPreparePermutation().isEqual(DataArrayInt([2,3,0,1])))
+        a=DataArrayInt([10003,-9999999,5,67])
+        self.assertTrue(a.checkAndPreparePermutation().isEqual(DataArrayInt([3,0,1,2])))
+        a=DataArrayInt([])
+        self.assertTrue(a.checkAndPreparePermutation().isEqual(DataArrayInt([])))
+        pass
+
     def setUp(self):
         pass
     pass
index a687bf85061b95411328197477e131210d627532..8413c49b13b3fdf8c74eeff8f25a3c191b6e43b7 100644 (file)
@@ -2392,7 +2392,6 @@ namespace ParaMEDMEM
     static DataArrayInt *Pow(const DataArrayInt *a1, const DataArrayInt *a2) throw(INTERP_KERNEL::Exception);
     void powEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception);
   public:
-    static int *CheckAndPreparePermutation(const int *start, const int *end);
     static DataArrayInt *Range(int begin, int end, int step) throw(INTERP_KERNEL::Exception);
     %extend
     {