X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FSwig%2FMEDLoader.i;h=7c05819a5b766692cdbf1b4291a8de0b54d9afa5;hb=1e1c28ef182a074dc64e39500963305ce1e9fb6e;hp=7add2d533890d2d68827860152f3bb48767d9d5a;hpb=37796a7b9f2a915fcd5400384bd7552ad79ff3d8;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/Swig/MEDLoader.i b/src/MEDLoader/Swig/MEDLoader.i index 7add2d533..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) @@ -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,145 +53,104 @@ def MEDCouplingFieldDoubleIdiv(self,*args): def MEDCouplingFieldDoubleIpow(self,*args): import _MEDLoader return _MEDLoader.MEDCouplingFieldDouble____ipow___(self, self, *args) -def MEDCouplingDataArrayBytenew(cls,*args): +def MEDCouplingDataArrayFloatIadd(self,*args): import _MEDLoader - return _MEDLoader.DataArrayByte____new___(cls,args) -def MEDCouplingDataArrayIntnew(cls,*args): + return _MEDLoader.DataArrayFloat____iadd___(self, self, *args) +def MEDCouplingDataArrayFloatIsub(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____new___(cls,args) -def MEDCouplingDataArrayIntIadd(self,*args): + return _MEDLoader.DataArrayFloat____isub___(self, self, *args) +def MEDCouplingDataArrayFloatImul(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____iadd___(self, self, *args) -def MEDCouplingDataArrayIntIsub(self,*args): + return _MEDLoader.DataArrayFloat____imul___(self, self, *args) +def MEDCouplingDataArrayFloatIdiv(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____isub___(self, self, *args) -def MEDCouplingDataArrayIntImul(self,*args): + return _MEDLoader.DataArrayFloat____idiv___(self, self, *args) +def MEDCouplingDataArrayInt32Iadd(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____imul___(self, self, *args) -def MEDCouplingDataArrayIntIdiv(self,*args): + return _MEDLoader.DataArrayInt32____iadd___(self, self, *args) +def MEDCouplingDataArrayInt32Isub(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____idiv___(self, self, *args) -def MEDCouplingDataArrayIntImod(self,*args): + return _MEDLoader.DataArrayInt32____isub___(self, self, *args) +def MEDCouplingDataArrayInt32Imul(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____imod___(self, self, *args) -def MEDCouplingDataArrayIntIpow(self,*args): + return _MEDLoader.DataArrayInt32____imul___(self, self, *args) +def MEDCouplingDataArrayInt32Idiv(self,*args): import _MEDLoader - return _MEDLoader.DataArrayInt____ipow___(self, self, *args) -def MEDCouplingDataArrayDoubleTupleIadd(self,*args): + return _MEDLoader.DataArrayInt32____idiv___(self, self, *args) +def MEDCouplingDataArrayInt32Imod(self,*args): import _MEDLoader - return _MEDLoader.DataArrayDoubleTuple____iadd___(self, self, *args) -def MEDCouplingDataArrayDoubleTupleIsub(self,*args): + return _MEDLoader.DataArrayInt32____imod___(self, self, *args) +def MEDCouplingDataArrayInt32Ipow(self,*args): import _MEDLoader - return _MEDLoader.DataArrayDoubleTuple____isub___(self, self, *args) -def MEDCouplingDataArrayDoubleTupleImul(self,*args): + return _MEDLoader.DataArrayInt32____ipow___(self, self, *args) +def MEDCouplingDataArrayInt64Iadd(self,*args): import _MEDLoader - return _MEDLoader.DataArrayDoubleTuple____imul___(self, 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): + return _MEDLoader.DataArrayInt64____iadd___(self, self, *args) +def MEDCouplingDataArrayInt64Isub(self,*args): import _MEDLoader - return _MEDLoader.DataArrayIntTuple____isub___(self, self, *args) -def MEDCouplingDataArrayIntTupleImul(self,*args): + return _MEDLoader.DataArrayInt64____isub___(self, self, *args) +def MEDCouplingDataArrayInt64Imul(self,*args): import _MEDLoader - return _MEDLoader.DataArrayIntTuple____imul___(self, self, *args) -def MEDCouplingDataArrayIntTupleIdiv(self,*args): + return _MEDLoader.DataArrayInt64____imul___(self, self, *args) +def MEDCouplingDataArrayInt64Idiv(self,*args): import _MEDLoader - return _MEDLoader.DataArrayIntTuple____idiv___(self, self, *args) -def MEDCouplingDataArrayIntTupleImod(self,*args): + return _MEDLoader.DataArrayInt64____idiv___(self, self, *args) +def MEDCouplingDataArrayInt64Imod(self,*args): import _MEDLoader - return _MEDLoader.DataArrayIntTuple____imod___(self, self, *args) -def ParaMEDMEMDenseMatrixIadd(self,*args): - import _MEDLoader - return _MEDLoader.DenseMatrix____iadd___(self, self, *args) -def ParaMEDMEMDenseMatrixIsub(self,*args): - import _MEDLoader - return _MEDLoader.DenseMatrix____isub___(self, self, *args) -def MEDCouplingUMeshnew(cls,*args): + return _MEDLoader.DataArrayInt64____imod___(self, self, *args) +def MEDCouplingDataArrayInt64Ipow(self,*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): + return _MEDLoader.DataArrayInt64____ipow___(self, self, *args) +def MEDCouplingDataArrayDoubleTupleIadd(self,*args): import _MEDLoader - return _MEDLoader.MEDCoupling1SGTUMesh____new___(cls,args) -def MEDCouplingCurveLinearMeshnew(cls,*args): + return _MEDLoader.DataArrayDoubleTuple____iadd___(self, self, *args) +def MEDCouplingDataArrayDoubleTupleIsub(self,*args): import _MEDLoader - return _MEDLoader.MEDCouplingCurveLinearMesh____new___(cls,args) -def MEDCouplingCMeshnew(cls,*args): + return _MEDLoader.DataArrayDoubleTuple____isub___(self, self, *args) +def MEDCouplingDataArrayDoubleTupleImul(self,*args): import _MEDLoader - return _MEDLoader.MEDCouplingCMesh____new___(cls,args) -def MEDCouplingIMeshnew(cls,*args): + return _MEDLoader.DataArrayDoubleTuple____imul___(self, self, *args) +def MEDCouplingDataArrayDoubleTupleIdiv(self,*args): import _MEDLoader - return _MEDLoader.MEDCouplingIMesh____new___(cls,args) -def MEDCouplingExtrudedMeshnew(cls,*args): + return _MEDLoader.DataArrayDoubleTuple____idiv___(self, self, *args) +def MEDCouplingDataArrayInt32TupleIadd(self,*args): import _MEDLoader - return _MEDLoader.MEDCouplingMappedExtrudedMesh____new___(cls,args) -%} - -%pythoncode %{ -def MEDCouplingMEDFileUMeshnew(cls,*args): + return _MEDLoader.DataArrayInt32Tuple____iadd___(self, self, *args) +def MEDCouplingDataArrayInt32TupleIsub(self,*args): import _MEDLoader - return _MEDLoader.MEDFileUMesh____new___(cls,args) -def MEDCouplingMEDFileCMeshnew(cls,*args): + return _MEDLoader.DataArrayInt32Tuple____isub___(self, self, *args) +def MEDCouplingDataArrayInt32TupleImul(self,*args): import _MEDLoader - return _MEDLoader.MEDFileCMesh____new___(cls,args) -def MEDCouplingMEDFileCurveLinearMeshnew(cls,*args): + return _MEDLoader.DataArrayInt32Tuple____imul___(self, self, *args) +def MEDCouplingDataArrayInt32TupleIdiv(self,*args): import _MEDLoader - return _MEDLoader.MEDFileCurveLinearMesh____new___(cls,args) -def MEDCouplingMEDFileMeshesnew(cls,*args): + return _MEDLoader.DataArrayInt32Tuple____idiv___(self, self, *args) +def MEDCouplingDataArrayInt32TupleImod(self,*args): import _MEDLoader - return _MEDLoader.MEDFileMeshes____new___(cls,args) -def MEDCouplingMEDFileDatanew(cls,*args): + return _MEDLoader.DataArrayInt32Tuple____imod___(self, self, *args) +def MEDCouplingDataArrayInt64TupleIadd(self,*args): import _MEDLoader - return _MEDLoader.MEDFileData____new___(cls,args) -def MEDCouplingMEDFileFieldsnew(cls,*args): + return _MEDLoader.DataArrayInt64Tuple____iadd___(self, self, *args) +def MEDCouplingDataArrayInt64TupleIsub(self,*args): import _MEDLoader - return _MEDLoader.MEDFileFields____new___(cls,args) -def MEDCouplingMEDFileField1TSnew(cls,*args): + return _MEDLoader.DataArrayInt64Tuple____isub___(self, self, *args) +def MEDCouplingDataArrayInt64TupleImul(self,*args): import _MEDLoader - return _MEDLoader.MEDFileField1TS____new___(cls,args) -def MEDCouplingMEDFileFieldMultiTSnew(cls,*args): + return _MEDLoader.DataArrayInt64Tuple____imul___(self, self, *args) +def MEDCouplingDataArrayInt64TupleIdiv(self,*args): import _MEDLoader - return _MEDLoader.MEDFileFieldMultiTS____new___(cls,args) -def MEDCouplingMEDFileIntField1TSnew(cls,*args): + return _MEDLoader.DataArrayInt64Tuple____idiv___(self, self, *args) +def MEDCouplingDataArrayInt64TupleImod(self,*args): import _MEDLoader - return _MEDLoader.MEDFileIntField1TS____new___(cls,args) -def MEDCouplingMEDFileIntFieldMultiTSnew(cls,*args): + return _MEDLoader.DataArrayInt64Tuple____imod___(self, self, *args) +def MEDCouplingDenseMatrixIadd(self,*args): import _MEDLoader - return _MEDLoader.MEDFileIntFieldMultiTS____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 %{ -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 -MEDFileParameters.__new__=classmethod(MEDCouplingMEDFileParametersnew) -del MEDCouplingMEDFileParametersnew -%} +%include "MEDLoaderFinalize.i"