+ %extend
+ {
+ PyObject *allGatherArrays(const DataArrayIdType *array) const
+ {
+ std::vector< MCAuto<DataArrayIdType> > ret;
+ self->allGatherArrays(MPI_COMM_WORLD,array,ret);
+ return convertFromVectorAutoObjToPyObj<DataArrayIdType>(ret,SWIGTITraits<mcIdType>::TI);
+ }
+
+ PyObject *allToAllArrays(PyObject *arrays) const
+ {
+ std::vector< DataArrayIdType * > arraysIn;
+ std::vector< MCAuto<DataArrayIdType> > arrayOut;
+ convertFromPyObjVectorOfObj<MEDCoupling::DataArrayIdType*>(arrays,SWIGTITraits<mcIdType>::TI,"DataArrayIdType",arraysIn);
+ std::vector< MCAuto<DataArrayIdType> > arraysIn2(FromVecToVecAuto<DataArrayIdType>(arraysIn));
+ self->allToAllArrays(MPI_COMM_WORLD,arraysIn2,arrayOut);
+ return convertFromVectorAutoObjToPyObj<DataArrayIdType>(arrayOut,SWIGTITraits<mcIdType>::TI);
+ }
+ }