From: ageay Date: Thu, 13 Jun 2013 14:56:59 +0000 (+0000) Subject: suppression of useless swigged CheckAndPreparePermutation X-Git-Tag: B4CMakeModifs~64 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6998a3888f19756883159d8872e0503b4da41e54;p=modules%2Fmed.git suppression of useless swigged CheckAndPreparePermutation --- diff --git a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py index 6fe9040bc..b4a058013 100644 --- a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py @@ -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 diff --git a/src/MEDCoupling_Swig/MEDCouplingMemArray.i b/src/MEDCoupling_Swig/MEDCouplingMemArray.i index a687bf850..8413c49b1 100644 --- a/src/MEDCoupling_Swig/MEDCouplingMemArray.i +++ b/src/MEDCoupling_Swig/MEDCouplingMemArray.i @@ -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 {