X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FSwig%2FMEDLoader.i;h=7c05819a5b766692cdbf1b4291a8de0b54d9afa5;hb=1e1c28ef182a074dc64e39500963305ce1e9fb6e;hp=5eb51ebf0dc717e639c72b17d70555923226014d;hpb=a06317d0bbeffcf1140451c1a00b5c1d9b0973f1;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/Swig/MEDLoader.i b/src/MEDLoader/Swig/MEDLoader.i index 5eb51ebf0..7c05819a5 100644 --- a/src/MEDLoader/Swig/MEDLoader.i +++ b/src/MEDLoader/Swig/MEDLoader.i @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -18,12 +18,11 @@ // // Author : Anthony Geay (CEA/DEN) +%module MEDLoader + %include "MEDLoaderCommon.i" %pythoncode %{ -def MEDCouplingDataArrayDoublenew(cls,*args): - import _MEDLoader - return _MEDLoader.DataArrayDouble____new___(cls,args) def MEDCouplingDataArrayDoubleIadd(self,*args): import _MEDLoader return _MEDLoader.DataArrayDouble____iadd___(self, self, *args) @@ -66,24 +65,42 @@ def MEDCouplingDataArrayFloatImul(self,*args): def MEDCouplingDataArrayFloatIdiv(self,*args): import _MEDLoader return _MEDLoader.DataArrayFloat____idiv___(self, self, *args) -def MEDCouplingDataArrayIntIadd(self,*args): +def MEDCouplingDataArrayInt32Iadd(self,*args): + import _MEDLoader + return _MEDLoader.DataArrayInt32____iadd___(self, self, *args) +def MEDCouplingDataArrayInt32Isub(self,*args): + import _MEDLoader + return _MEDLoader.DataArrayInt32____isub___(self, self, *args) +def MEDCouplingDataArrayInt32Imul(self,*args): + import _MEDLoader + return _MEDLoader.DataArrayInt32____imul___(self, self, *args) +def MEDCouplingDataArrayInt32Idiv(self,*args): + import _MEDLoader + return _MEDLoader.DataArrayInt32____idiv___(self, self, *args) +def MEDCouplingDataArrayInt32Imod(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____iadd___(self, self, *args) -def MEDCouplingDataArrayIntIsub(self,*args): + return _MEDLoader.DataArrayInt32____imod___(self, self, *args) +def MEDCouplingDataArrayInt32Ipow(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____isub___(self, self, *args) -def MEDCouplingDataArrayIntImul(self,*args): + return _MEDLoader.DataArrayInt32____ipow___(self, self, *args) +def MEDCouplingDataArrayInt64Iadd(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____imul___(self, self, *args) -def MEDCouplingDataArrayIntIdiv(self,*args): + return _MEDLoader.DataArrayInt64____iadd___(self, self, *args) +def MEDCouplingDataArrayInt64Isub(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____idiv___(self, self, *args) -def MEDCouplingDataArrayIntImod(self,*args): + return _MEDLoader.DataArrayInt64____isub___(self, self, *args) +def MEDCouplingDataArrayInt64Imul(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____imod___(self, self, *args) -def MEDCouplingDataArrayIntIpow(self,*args): + return _MEDLoader.DataArrayInt64____imul___(self, self, *args) +def MEDCouplingDataArrayInt64Idiv(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____ipow___(self, self, *args) + return _MEDLoader.DataArrayInt64____idiv___(self, self, *args) +def MEDCouplingDataArrayInt64Imod(self,*args): + import _MEDLoader + return _MEDLoader.DataArrayInt64____imod___(self, self, *args) +def MEDCouplingDataArrayInt64Ipow(self,*args): + import _MEDLoader + return _MEDLoader.DataArrayInt64____ipow___(self, self, *args) def MEDCouplingDataArrayDoubleTupleIadd(self,*args): import _MEDLoader return _MEDLoader.DataArrayDoubleTuple____iadd___(self, self, *args) @@ -96,116 +113,44 @@ def MEDCouplingDataArrayDoubleTupleImul(self,*args): def MEDCouplingDataArrayDoubleTupleIdiv(self,*args): import _MEDLoader return _MEDLoader.DataArrayDoubleTuple____idiv___(self, self, *args) -def MEDCouplingDataArrayIntTupleIadd(self,*args): - import _MEDLoader - return _MEDLoader.DataArrayIntTuple____iadd___(self, self, *args) -def MEDCouplingDataArrayIntTupleIsub(self,*args): - import _MEDLoader - return _MEDLoader.DataArrayIntTuple____isub___(self, self, *args) -def MEDCouplingDataArrayIntTupleImul(self,*args): - import _MEDLoader - return _MEDLoader.DataArrayIntTuple____imul___(self, self, *args) -def MEDCouplingDataArrayIntTupleIdiv(self,*args): - import _MEDLoader - return _MEDLoader.DataArrayIntTuple____idiv___(self, self, *args) -def MEDCouplingDataArrayIntTupleImod(self,*args): +def MEDCouplingDataArrayInt32TupleIadd(self,*args): import _MEDLoader - return _MEDLoader.DataArrayIntTuple____imod___(self, self, *args) -def ParaMEDMEMDenseMatrixIadd(self,*args): + return _MEDLoader.DataArrayInt32Tuple____iadd___(self, self, *args) +def MEDCouplingDataArrayInt32TupleIsub(self,*args): import _MEDLoader - return _MEDLoader.DenseMatrix____iadd___(self, self, *args) -def ParaMEDMEMDenseMatrixIsub(self,*args): + return _MEDLoader.DataArrayInt32Tuple____isub___(self, self, *args) +def MEDCouplingDataArrayInt32TupleImul(self,*args): import _MEDLoader - return _MEDLoader.DenseMatrix____isub___(self, self, *args) -%} - -%pythoncode %{ -def MEDCouplingMEDFileMeshesnew(cls,*args): + return _MEDLoader.DataArrayInt32Tuple____imul___(self, self, *args) +def MEDCouplingDataArrayInt32TupleIdiv(self,*args): import _MEDLoader - return _MEDLoader.MEDFileMeshes____new___(cls,args) -def MEDCouplingMEDFileFieldsnew(cls,*args): + return _MEDLoader.DataArrayInt32Tuple____idiv___(self, self, *args) +def MEDCouplingDataArrayInt32TupleImod(self,*args): import _MEDLoader - return _MEDLoader.MEDFileFields____new___(cls,args) -def MEDCouplingMEDFileField1TSnew(cls,*args): + return _MEDLoader.DataArrayInt32Tuple____imod___(self, self, *args) +def MEDCouplingDataArrayInt64TupleIadd(self,*args): import _MEDLoader - return _MEDLoader.MEDFileField1TS____new___(cls,args) -def MEDCouplingMEDFileFieldMultiTSnew(cls,*args): + return _MEDLoader.DataArrayInt64Tuple____iadd___(self, self, *args) +def MEDCouplingDataArrayInt64TupleIsub(self,*args): import _MEDLoader - return _MEDLoader.MEDFileFieldMultiTS____new___(cls,args) -def MEDCouplingMEDFileIntField1TSnew(cls,*args): + return _MEDLoader.DataArrayInt64Tuple____isub___(self, self, *args) +def MEDCouplingDataArrayInt64TupleImul(self,*args): import _MEDLoader - return _MEDLoader.MEDFileIntField1TS____new___(cls,args) -def MEDCouplingMEDFileIntFieldMultiTSnew(cls,*args): + return _MEDLoader.DataArrayInt64Tuple____imul___(self, self, *args) +def MEDCouplingDataArrayInt64TupleIdiv(self,*args): import _MEDLoader - return _MEDLoader.MEDFileIntFieldMultiTS____new___(cls,args) -def MEDCouplingMEDFileFloatField1TSnew(cls,*args): + return _MEDLoader.DataArrayInt64Tuple____idiv___(self, self, *args) +def MEDCouplingDataArrayInt64TupleImod(self,*args): import _MEDLoader - return _MEDLoader.MEDFileFloatField1TS____new___(cls,args) -def MEDCouplingMEDFileFloatFieldMultiTSnew(cls,*args): + return _MEDLoader.DataArrayInt64Tuple____imod___(self, self, *args) +def MEDCouplingDenseMatrixIadd(self,*args): import _MEDLoader - return _MEDLoader.MEDFileFloatFieldMultiTS____new___(cls,args) -def MEDCouplingMEDFileParametersnew(cls,*args): + return _MEDLoader.DenseMatrix____iadd___(self, self, *args) +def MEDCouplingDenseMatrixIsub(self,*args): import _MEDLoader - return _MEDLoader.MEDFileParameters____new___(cls,args) + return _MEDLoader.DenseMatrix____isub___(self, self, *args) %} %include "MEDCouplingFinalize.i" -%pythoncode %{ -MEDFileMeshesIterator.__next__ = MEDFileMeshesIterator.next -MEDFileAnyTypeFieldMultiTSIterator.__next__ = MEDFileAnyTypeFieldMultiTSIterator.next -MEDFileFieldsIterator.__next__ = MEDFileFieldsIterator.next -%} - -%pythoncode %{ -def MEDCouplingMEDFileUMeshReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileUMesh,((),(self.__getstate__()),)) -MEDFileUMesh.__reduce__=MEDCouplingMEDFileUMeshReduce -del MEDCouplingMEDFileUMeshReduce -def MEDCouplingMEDFileCMeshReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileCMesh,((self.serialize(),),(self.__getstate__()),)) -MEDFileCMesh.__reduce__=MEDCouplingMEDFileCMeshReduce -del MEDCouplingMEDFileCMeshReduce -def MEDCouplingMEDFileCurveLinearMeshReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileCurveLinearMesh,((self.serialize(),),(self.__getstate__()),)) -MEDFileCurveLinearMesh.__reduce__=MEDCouplingMEDFileCurveLinearMeshReduce -del MEDCouplingMEDFileCurveLinearMeshReduce -def MEDCouplingMEDFileDataReduce(self):#"PyWrap of MEDFileData.__getnewargs__ : not implemented because numpy is not active in your configuration ! No serialization/unserialization available without numpy !" - return MEDCouplingStdReduceFunct,(MEDFileData,((self.serialize(),),(self.__getstate__()),)) -MEDFileData.__reduce__=MEDCouplingMEDFileDataReduce -del MEDCouplingMEDFileDataReduce -def MEDCouplingMEDFileMeshesReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileMeshes,((self.serialize(),),(self.__getstate__()),)) -MEDFileMeshes.__reduce__=MEDCouplingMEDFileMeshesReduce -del MEDCouplingMEDFileMeshesReduce -def MEDCouplingMEDFileFieldsReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileFields,((self.serialize(),),(self.__getstate__()),)) -MEDFileFields.__reduce__=MEDCouplingMEDFileFieldsReduce -del MEDCouplingMEDFileFieldsReduce -def MEDCouplingMEDFileField1TSReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileField1TS,((self.serialize(),),(self.__getstate__()),)) -MEDFileField1TS.__reduce__=MEDCouplingMEDFileField1TSReduce -del MEDCouplingMEDFileField1TSReduce -def MEDCouplingMEDFileFieldMultiTSReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileFieldMultiTS,((self.serialize(),),(self.__getstate__()),)) -MEDFileFieldMultiTS.__reduce__=MEDCouplingMEDFileFieldMultiTSReduce -del MEDCouplingMEDFileFieldMultiTSReduce -def MEDCouplingMEDFileIntField1TSReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileIntField1TS,((self.serialize(),),(self.__getstate__()),)) -MEDFileIntField1TS.__reduce__=MEDCouplingMEDFileIntField1TSReduce -def MEDCouplingMEDFileIntFieldMultiTSReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileIntFieldMultiTS,((self.serialize(),),(self.__getstate__()),)) -MEDFileIntFieldMultiTS.__reduce__=MEDCouplingMEDFileIntFieldMultiTSReduce -del MEDCouplingMEDFileIntFieldMultiTSReduce -def MEDCouplingMEDFileFloatField1TSReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileFloatField1TS,((self.serialize(),),(self.__getstate__()),)) -MEDFileFloatField1TS.__reduce__=MEDCouplingMEDFileFloatField1TSReduce -def MEDCouplingMEDFileFloatFieldMultiTSReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileFloatFieldMultiTS,((self.serialize(),),(self.__getstate__()),)) -MEDFileFloatFieldMultiTS.__reduce__=MEDCouplingMEDFileFloatFieldMultiTSReduce -del MEDCouplingMEDFileFloatFieldMultiTSReduce -def MEDCouplingMEDFileParametersReduce(self): - return MEDCouplingStdReduceFunct,(MEDFileParameters,((self.serialize(),),(self.__getstate__()),)) -MEDFileParameters.__reduce__=MEDCouplingMEDFileParametersReduce -del MEDCouplingMEDFileParametersReduce -%} +%include "MEDLoaderFinalize.i"