]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
swig of computeMeshRestrictionFromTupleIds
authorageay <ageay>
Thu, 21 Mar 2013 16:24:06 +0000 (16:24 +0000)
committerageay <ageay>
Thu, 21 Mar 2013 16:24:06 +0000 (16:24 +0000)
src/MEDCoupling_Swig/MEDCouplingCommon.i

index c5e060582235b24a7033b7a4dc63a1a1e6e47350..967087bf2bac5280335a9350ab7ad1e19dda5b5f 100644 (file)
@@ -988,6 +988,16 @@ namespace ParaMEDMEM
     PyTuple_SetItem(pyRet,1,pyRet1);
     return pyRet;
   }
+  
+  PyObject *searchRangesInListOfIds(const DataArrayInt *listOfIds) const throw(INTERP_KERNEL::Exception)
+  {
+    DataArrayInt *ret0=0,*ret1=0;
+    self->searchRangesInListOfIds(listOfIds,ret0,ret1);
+    PyObject *pyRet=PyTuple_New(2);
+    PyTuple_SetItem(pyRet,0,SWIG_NewPointerObj(SWIG_as_voidptr(ret0),SWIGTYPE_p_ParaMEDMEM__DataArrayInt, SWIG_POINTER_OWN | 0 ));
+    PyTuple_SetItem(pyRet,1,SWIG_NewPointerObj(SWIG_as_voidptr(ret1),SWIGTYPE_p_ParaMEDMEM__DataArrayInt, SWIG_POINTER_OWN | 0 ));
+    return pyRet;
+  }
 }
 
 %extend ParaMEDMEM::DataArrayChar