X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FSwig%2FMEDLoader.i;h=bf10fe1c0ddf1ad481d77c6f2e86d75be502cd3d;hb=1e36a6710aab710674e20fbd89f6a9a8f238c023;hp=4ee736faccaaee1e428ebb74da26cad6b7ec0443;hpb=10f37bf6f33a762626d7f1093b2f5450c1688667;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/Swig/MEDLoader.i b/src/MEDLoader/Swig/MEDLoader.i index 4ee736fac..bf10fe1c0 100644 --- a/src/MEDLoader/Swig/MEDLoader.i +++ b/src/MEDLoader/Swig/MEDLoader.i @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D +// Copyright (C) 2007-2015 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 // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -16,49 +16,133 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // +// Author : Anthony Geay (CEA/DEN) %include "MEDLoaderCommon.i" %pythoncode %{ -def ParaMEDMEMDataArrayDoubleIadd(self,*args): +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) -def ParaMEDMEMDataArrayDoubleIsub(self,*args): +def MEDCouplingDataArrayDoubleIsub(self,*args): import _MEDLoader return _MEDLoader.DataArrayDouble____isub___(self, self, *args) -def ParaMEDMEMDataArrayDoubleImul(self,*args): +def MEDCouplingDataArrayDoubleImul(self,*args): import _MEDLoader return _MEDLoader.DataArrayDouble____imul___(self, self, *args) -def ParaMEDMEMDataArrayDoubleIdiv(self,*args): +def MEDCouplingDataArrayDoubleIdiv(self,*args): import _MEDLoader return _MEDLoader.DataArrayDouble____idiv___(self, self, *args) -def ParaMEDMEMMEDCouplingFieldDoubleIadd(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) -def ParaMEDMEMMEDCouplingFieldDoubleIsub(self,*args): +def MEDCouplingFieldDoubleIsub(self,*args): import _MEDLoader return _MEDLoader.MEDCouplingFieldDouble____isub___(self, self, *args) -def ParaMEDMEMMEDCouplingFieldDoubleImul(self,*args): +def MEDCouplingFieldDoubleImul(self,*args): import _MEDLoader return _MEDLoader.MEDCouplingFieldDouble____imul___(self, self, *args) -def ParaMEDMEMMEDCouplingFieldDoubleIdiv(self,*args): +def MEDCouplingFieldDoubleIdiv(self,*args): import _MEDLoader return _MEDLoader.MEDCouplingFieldDouble____idiv___(self, self, *args) -def ParaMEDMEMDataArrayIntIadd(self,*args): +def MEDCouplingFieldDoubleIpow(self,*args): + import _MEDLoader + return _MEDLoader.MEDCouplingFieldDouble____ipow___(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) -def ParaMEDMEMDataArrayIntIsub(self,*args): +def MEDCouplingDataArrayIntIsub(self,*args): import _MEDLoader return _MEDLoader.DataArrayInt____isub___(self, self, *args) -def ParaMEDMEMDataArrayIntImul(self,*args): +def MEDCouplingDataArrayIntImul(self,*args): import _MEDLoader return _MEDLoader.DataArrayInt____imul___(self, self, *args) -def ParaMEDMEMDataArrayIntIdiv(self,*args): +def MEDCouplingDataArrayIntIdiv(self,*args): import _MEDLoader return _MEDLoader.DataArrayInt____idiv___(self, self, *args) -def ParaMEDMEMDataArrayIntImod(self,*args): +def MEDCouplingDataArrayIntImod(self,*args): import _MEDLoader return _MEDLoader.DataArrayInt____imod___(self, self, *args) +def MEDCouplingDataArrayIntIpow(self,*args): + import _MEDLoader + return _MEDLoader.DataArrayInt____ipow___(self, self, *args) +def MEDCouplingDataArrayDoubleTupleIadd(self,*args): + import _MEDLoader + return _MEDLoader.DataArrayDoubleTuple____iadd___(self, self, *args) +def MEDCouplingDataArrayDoubleTupleIsub(self,*args): + import _MEDLoader + return _MEDLoader.DataArrayDoubleTuple____isub___(self, self, *args) +def MEDCouplingDataArrayDoubleTupleImul(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): + 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): + 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): + 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 ParaMEDMEMMEDFileUMeshnew(cls,*args): + import _MEDLoader + return _MEDLoader.MEDFileUMesh____new___(cls,args) %} %include "MEDCouplingFinalize.i" + +%pythoncode %{ +MEDFileUMesh.__new__=classmethod(ParaMEDMEMMEDFileUMeshnew) +del ParaMEDMEMMEDFileUMeshnew +%}