From f7451f293835c0d9a120f631b533938ed4e47f01 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 21 Mar 2013 16:24:06 +0000 Subject: [PATCH] swig of computeMeshRestrictionFromTupleIds --- src/MEDCoupling_Swig/MEDCouplingCommon.i | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.39.2