X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FSwig%2FMEDLoader.i;h=517564e41ba3527a7d8ccf936f2fdc86797a9135;hb=8f309b3cb1e3a62a53364bb08ae7fd947dd21631;hp=d2498bbe36a72e8ca71ef9e1edd4fe9559a7dc5e;hpb=be04791d7d756c50d1e4296ddf714478dfe78de1;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/Swig/MEDLoader.i b/src/MEDLoader/Swig/MEDLoader.i index d2498bbe3..517564e41 100644 --- a/src/MEDLoader/Swig/MEDLoader.i +++ b/src/MEDLoader/Swig/MEDLoader.i @@ -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) @@ -39,9 +38,6 @@ def MEDCouplingDataArrayDoubleIdiv(self,*args): def MEDCouplingDataArrayDoubleIpow(self,*args): import _MEDLoader return _MEDLoader.DataArrayDouble____ipow___(self, self, *args) -def MEDCouplingFieldDoublenew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDCouplingFieldDouble____new___(cls,args) def MEDCouplingFieldDoubleIadd(self,*args): import _MEDLoader return _MEDLoader.MEDCouplingFieldDouble____iadd___(self, self, *args) @@ -57,18 +53,6 @@ def MEDCouplingFieldDoubleIdiv(self,*args): def MEDCouplingFieldDoubleIpow(self,*args): import _MEDLoader return _MEDLoader.MEDCouplingFieldDouble____ipow___(self, self, *args) -def MEDCouplingFieldIntnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDCouplingFieldInt____new___(cls,args) -def MEDCouplingFieldFloatnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDCouplingFieldFloat____new___(cls,args) -def MEDCouplingDataArrayBytenew(cls,*args): - import _MEDLoader - return _MEDLoader.DataArrayByte____new___(cls,args) -def MEDCouplingDataArrayFloatnew(cls,*args): - import _MEDLoader - return _MEDLoader.DataArrayFloat____new___(cls,args) def MEDCouplingDataArrayFloatIadd(self,*args): import _MEDLoader return _MEDLoader.DataArrayFloat____iadd___(self, self, *args) @@ -81,9 +65,6 @@ def MEDCouplingDataArrayFloatImul(self,*args): def MEDCouplingDataArrayFloatIdiv(self,*args): import _MEDLoader return _MEDLoader.DataArrayFloat____idiv___(self, self, *args) -def MEDCouplingDataArrayIntnew(cls,*args): - import _MEDLoader - return _MEDLoader.DataArrayInt____new___(cls,args) def MEDCouplingDataArrayIntIadd(self,*args): import _MEDLoader return _MEDLoader.DataArrayInt____iadd___(self, self, *args) @@ -129,104 +110,14 @@ def MEDCouplingDataArrayIntTupleIdiv(self,*args): def MEDCouplingDataArrayIntTupleImod(self,*args): import _MEDLoader return _MEDLoader.DataArrayIntTuple____imod___(self, self, *args) -def ParaMEDMEMDenseMatrixIadd(self,*args): +def MEDCouplingDenseMatrixIadd(self,*args): import _MEDLoader return _MEDLoader.DenseMatrix____iadd___(self, self, *args) -def ParaMEDMEMDenseMatrixIsub(self,*args): +def MEDCouplingDenseMatrixIsub(self,*args): import _MEDLoader return _MEDLoader.DenseMatrix____isub___(self, self, *args) -def MEDCouplingUMeshnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDCouplingUMesh____new___(cls,args) -def MEDCoupling1DGTUMeshnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDCoupling1DGTUMesh____new___(cls,args) -def MEDCoupling1SGTUMeshnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDCoupling1SGTUMesh____new___(cls,args) -def MEDCouplingCurveLinearMeshnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDCouplingCurveLinearMesh____new___(cls,args) -def MEDCouplingCMeshnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDCouplingCMesh____new___(cls,args) -def MEDCouplingIMeshnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDCouplingIMesh____new___(cls,args) -def MEDCouplingExtrudedMeshnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDCouplingMappedExtrudedMesh____new___(cls,args) -%} - -%pythoncode %{ -def MEDCouplingMEDFileUMeshnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileUMesh____new___(cls,args) -def MEDCouplingMEDFileCMeshnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileCMesh____new___(cls,args) -def MEDCouplingMEDFileCurveLinearMeshnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileCurveLinearMesh____new___(cls,args) -def MEDCouplingMEDFileMeshesnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileMeshes____new___(cls,args) -def MEDCouplingMEDFileDatanew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileData____new___(cls,args) -def MEDCouplingMEDFileFieldsnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileFields____new___(cls,args) -def MEDCouplingMEDFileField1TSnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileField1TS____new___(cls,args) -def MEDCouplingMEDFileFieldMultiTSnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileFieldMultiTS____new___(cls,args) -def MEDCouplingMEDFileIntField1TSnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileIntField1TS____new___(cls,args) -def MEDCouplingMEDFileIntFieldMultiTSnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileIntFieldMultiTS____new___(cls,args) -def MEDCouplingMEDFileFloatField1TSnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileFloatField1TS____new___(cls,args) -def MEDCouplingMEDFileFloatFieldMultiTSnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileFloatFieldMultiTS____new___(cls,args) -def MEDCouplingMEDFileParametersnew(cls,*args): - import _MEDLoader - return _MEDLoader.MEDFileParameters____new___(cls,args) %} %include "MEDCouplingFinalize.i" -%pythoncode %{ -MEDFileUMesh.__new__=classmethod(MEDCouplingMEDFileUMeshnew) -del MEDCouplingMEDFileUMeshnew -MEDFileCMesh.__new__=classmethod(MEDCouplingMEDFileCMeshnew) -del MEDCouplingMEDFileCMeshnew -MEDFileCurveLinearMesh.__new__=classmethod(MEDCouplingMEDFileCurveLinearMeshnew) -del MEDCouplingMEDFileCurveLinearMeshnew -MEDFileData.__new__=classmethod(MEDCouplingMEDFileDatanew) -del MEDCouplingMEDFileDatanew -MEDFileMeshes.__new__=classmethod(MEDCouplingMEDFileMeshesnew) -del MEDCouplingMEDFileMeshesnew -MEDFileFields.__new__=classmethod(MEDCouplingMEDFileFieldsnew) -del MEDCouplingMEDFileFieldsnew -MEDFileField1TS.__new__=classmethod(MEDCouplingMEDFileField1TSnew) -del MEDCouplingMEDFileField1TSnew -MEDFileFieldMultiTS.__new__=classmethod(MEDCouplingMEDFileFieldMultiTSnew) -del MEDCouplingMEDFileFieldMultiTSnew -MEDFileIntField1TS.__new__=classmethod(MEDCouplingMEDFileIntField1TSnew) -del MEDCouplingMEDFileIntField1TSnew -MEDFileIntFieldMultiTS.__new__=classmethod(MEDCouplingMEDFileIntFieldMultiTSnew) -del MEDCouplingMEDFileIntFieldMultiTSnew -MEDFileFloatField1TS.__new__=classmethod(MEDCouplingMEDFileFloatField1TSnew) -del MEDCouplingMEDFileFloatField1TSnew -MEDFileFloatFieldMultiTS.__new__=classmethod(MEDCouplingMEDFileFloatFieldMultiTSnew) -del MEDCouplingMEDFileFloatFieldMultiTSnew -MEDFileParameters.__new__=classmethod(MEDCouplingMEDFileParametersnew) -del MEDCouplingMEDFileParametersnew -%} +%include "MEDLoaderFinalize.i"