From: Anthony Geay Date: Wed, 3 May 2017 08:07:03 +0000 (+0200) Subject: A small modif X-Git-Tag: V8_4_0a1~63 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aeb6e025e98c5432c365cfc264d1f8405d1da1f3;p=tools%2Fmedcoupling.git A small modif --- diff --git a/src/MEDCoupling_Swig/MEDCouplingMemArray.i b/src/MEDCoupling_Swig/MEDCouplingMemArray.i index 4b60cc0d9..767d95696 100644 --- a/src/MEDCoupling_Swig/MEDCouplingMemArray.i +++ b/src/MEDCoupling_Swig/MEDCouplingMemArray.i @@ -52,6 +52,7 @@ %newobject MEDCoupling::DataArrayFloat::New; %newobject MEDCoupling::DataArrayFloat::iterator; %newobject MEDCoupling::DataArrayFloat::__iter__; +%newobject MEDCoupling::DataArrayFloat::convertToDblArr; %newobject MEDCoupling::DataArrayInt::New; %newobject MEDCoupling::DataArrayInt::__iter__; %newobject MEDCoupling::DataArrayInt::selectPartDef; @@ -663,6 +664,8 @@ namespace MEDCoupling } }; + class DataArrayDouble; + class DataArrayFloat : public DataArray { public: @@ -732,6 +735,12 @@ namespace MEDCoupling int nbOfComp(self->getNumberOfComponents()),nbOfTuples(self->getNumberOfTuples()); return convertDblArrToPyListOfTuple(vals,nbOfComp,nbOfTuples); } + + DataArrayDouble *convertToDblArr() const throw(INTERP_KERNEL::Exception) + { + MCAuto ret(self->convertToDblArr()); + return ret.retn(); + } PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) {