From: ageay Date: Thu, 21 Mar 2013 16:24:06 +0000 (+0000) Subject: swig of computeMeshRestrictionFromTupleIds X-Git-Tag: V6_main_FINAL~250 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f7451f293835c0d9a120f631b533938ed4e47f01;p=tools%2Fmedcoupling.git swig of computeMeshRestrictionFromTupleIds --- diff --git a/src/MEDCoupling_Swig/MEDCouplingCommon.i b/src/MEDCoupling_Swig/MEDCouplingCommon.i index c5e060582..967087bf2 100644 --- a/src/MEDCoupling_Swig/MEDCouplingCommon.i +++ b/src/MEDCoupling_Swig/MEDCouplingCommon.i @@ -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