Salome HOME
Install file medutilies.py into lib/python instead of bin.
[tools/medcoupling.git] / src / MEDLoader / Swig / MEDLoader.i
1 // Copyright (C) 2007-2016  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 // Author : Anthony Geay (CEA/DEN)
20
21 %include "MEDLoaderCommon.i"
22
23 %pythoncode %{
24 def MEDCouplingDataArrayDoublenew(cls,*args):
25     import _MEDLoader
26     return _MEDLoader.DataArrayDouble____new___(cls,args)
27 def MEDCouplingDataArrayDoubleIadd(self,*args):
28     import _MEDLoader
29     return _MEDLoader.DataArrayDouble____iadd___(self, self, *args)
30 def MEDCouplingDataArrayDoubleIsub(self,*args):
31     import _MEDLoader
32     return _MEDLoader.DataArrayDouble____isub___(self, self, *args)
33 def MEDCouplingDataArrayDoubleImul(self,*args):
34     import _MEDLoader
35     return _MEDLoader.DataArrayDouble____imul___(self, self, *args)
36 def MEDCouplingDataArrayDoubleIdiv(self,*args):
37     import _MEDLoader
38     return _MEDLoader.DataArrayDouble____idiv___(self, self, *args)
39 def MEDCouplingDataArrayDoubleIpow(self,*args):
40     import _MEDLoader
41     return _MEDLoader.DataArrayDouble____ipow___(self, self, *args)
42 def MEDCouplingFieldDoublenew(cls,*args):
43     import _MEDLoader
44     return _MEDLoader.MEDCouplingFieldDouble____new___(cls,args)
45 def MEDCouplingFieldDoubleIadd(self,*args):
46     import _MEDLoader
47     return _MEDLoader.MEDCouplingFieldDouble____iadd___(self, self, *args)
48 def MEDCouplingFieldDoubleIsub(self,*args):
49     import _MEDLoader
50     return _MEDLoader.MEDCouplingFieldDouble____isub___(self, self, *args)
51 def MEDCouplingFieldDoubleImul(self,*args):
52     import _MEDLoader
53     return _MEDLoader.MEDCouplingFieldDouble____imul___(self, self, *args)
54 def MEDCouplingFieldDoubleIdiv(self,*args):
55     import _MEDLoader
56     return _MEDLoader.MEDCouplingFieldDouble____idiv___(self, self, *args)
57 def MEDCouplingFieldDoubleIpow(self,*args):
58     import _MEDLoader
59     return _MEDLoader.MEDCouplingFieldDouble____ipow___(self, self, *args)
60 def MEDCouplingFieldIntnew(cls,*args):
61     import _MEDLoader
62     return _MEDLoader.MEDCouplingFieldInt____new___(cls,args)
63 def MEDCouplingFieldFloatnew(cls,*args):
64     import _MEDLoader
65     return _MEDLoader.MEDCouplingFieldFloat____new___(cls,args)
66 def MEDCouplingDataArrayBytenew(cls,*args):
67     import _MEDLoader
68     return _MEDLoader.DataArrayByte____new___(cls,args)
69 def MEDCouplingDataArrayFloatnew(cls,*args):
70     import _MEDLoader
71     return _MEDLoader.DataArrayFloat____new___(cls,args)
72 def MEDCouplingDataArrayFloatIadd(self,*args):
73     import _MEDLoader
74     return _MEDLoader.DataArrayFloat____iadd___(self, self, *args)
75 def MEDCouplingDataArrayFloatIsub(self,*args):
76     import _MEDLoader
77     return _MEDLoader.DataArrayFloat____isub___(self, self, *args)
78 def MEDCouplingDataArrayFloatImul(self,*args):
79     import _MEDLoader
80     return _MEDLoader.DataArrayFloat____imul___(self, self, *args)
81 def MEDCouplingDataArrayFloatIdiv(self,*args):
82     import _MEDLoader
83     return _MEDLoader.DataArrayFloat____idiv___(self, self, *args)
84 def MEDCouplingDataArrayIntnew(cls,*args):
85     import _MEDLoader
86     return _MEDLoader.DataArrayInt____new___(cls,args)
87 def MEDCouplingDataArrayIntIadd(self,*args):
88     import _MEDLoader
89     return _MEDLoader.DataArrayInt____iadd___(self, self, *args)
90 def MEDCouplingDataArrayIntIsub(self,*args):
91     import _MEDLoader
92     return _MEDLoader.DataArrayInt____isub___(self, self, *args)
93 def MEDCouplingDataArrayIntImul(self,*args):
94     import _MEDLoader
95     return _MEDLoader.DataArrayInt____imul___(self, self, *args)
96 def MEDCouplingDataArrayIntIdiv(self,*args):
97     import _MEDLoader
98     return _MEDLoader.DataArrayInt____idiv___(self, self, *args)
99 def MEDCouplingDataArrayIntImod(self,*args):
100     import _MEDLoader
101     return _MEDLoader.DataArrayInt____imod___(self, self, *args)
102 def MEDCouplingDataArrayIntIpow(self,*args):
103     import _MEDLoader
104     return _MEDLoader.DataArrayInt____ipow___(self, self, *args)
105 def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
106     import _MEDLoader
107     return _MEDLoader.DataArrayDoubleTuple____iadd___(self, self, *args)
108 def MEDCouplingDataArrayDoubleTupleIsub(self,*args):
109     import _MEDLoader
110     return _MEDLoader.DataArrayDoubleTuple____isub___(self, self, *args)
111 def MEDCouplingDataArrayDoubleTupleImul(self,*args):
112     import _MEDLoader
113     return _MEDLoader.DataArrayDoubleTuple____imul___(self, self, *args)
114 def MEDCouplingDataArrayDoubleTupleIdiv(self,*args):
115     import _MEDLoader
116     return _MEDLoader.DataArrayDoubleTuple____idiv___(self, self, *args)
117 def MEDCouplingDataArrayIntTupleIadd(self,*args):
118     import _MEDLoader
119     return _MEDLoader.DataArrayIntTuple____iadd___(self, self, *args)
120 def MEDCouplingDataArrayIntTupleIsub(self,*args):
121     import _MEDLoader
122     return _MEDLoader.DataArrayIntTuple____isub___(self, self, *args)
123 def MEDCouplingDataArrayIntTupleImul(self,*args):
124     import _MEDLoader
125     return _MEDLoader.DataArrayIntTuple____imul___(self, self, *args)
126 def MEDCouplingDataArrayIntTupleIdiv(self,*args):
127     import _MEDLoader
128     return _MEDLoader.DataArrayIntTuple____idiv___(self, self, *args)
129 def MEDCouplingDataArrayIntTupleImod(self,*args):
130     import _MEDLoader
131     return _MEDLoader.DataArrayIntTuple____imod___(self, self, *args)
132 def ParaMEDMEMDenseMatrixIadd(self,*args):
133     import _MEDLoader
134     return _MEDLoader.DenseMatrix____iadd___(self, self, *args)
135 def ParaMEDMEMDenseMatrixIsub(self,*args):
136     import _MEDLoader
137     return _MEDLoader.DenseMatrix____isub___(self, self, *args)
138 def MEDCouplingUMeshnew(cls,*args):
139     import _MEDLoader
140     return _MEDLoader.MEDCouplingUMesh____new___(cls,args)
141 def MEDCoupling1DGTUMeshnew(cls,*args):
142     import _MEDLoader
143     return _MEDLoader.MEDCoupling1DGTUMesh____new___(cls,args)
144 def MEDCoupling1SGTUMeshnew(cls,*args):
145     import _MEDLoader
146     return _MEDLoader.MEDCoupling1SGTUMesh____new___(cls,args)
147 def MEDCouplingCurveLinearMeshnew(cls,*args):
148     import _MEDLoader
149     return _MEDLoader.MEDCouplingCurveLinearMesh____new___(cls,args)
150 def MEDCouplingCMeshnew(cls,*args):
151     import _MEDLoader
152     return _MEDLoader.MEDCouplingCMesh____new___(cls,args)
153 def MEDCouplingIMeshnew(cls,*args):
154     import _MEDLoader
155     return _MEDLoader.MEDCouplingIMesh____new___(cls,args)
156 def MEDCouplingExtrudedMeshnew(cls,*args):
157     import _MEDLoader
158     return _MEDLoader.MEDCouplingMappedExtrudedMesh____new___(cls,args)
159 %}
160
161 %pythoncode %{
162 def MEDCouplingMEDFileUMeshnew(cls,*args):
163     import _MEDLoader
164     return _MEDLoader.MEDFileUMesh____new___(cls,args)
165 def MEDCouplingMEDFileCMeshnew(cls,*args):
166     import _MEDLoader
167     return _MEDLoader.MEDFileCMesh____new___(cls,args)
168 def MEDCouplingMEDFileCurveLinearMeshnew(cls,*args):
169     import _MEDLoader
170     return _MEDLoader.MEDFileCurveLinearMesh____new___(cls,args)
171 def MEDCouplingMEDFileMeshesnew(cls,*args):
172     import _MEDLoader
173     return _MEDLoader.MEDFileMeshes____new___(cls,args)
174 def MEDCouplingMEDFileDatanew(cls,*args):
175     import _MEDLoader
176     return _MEDLoader.MEDFileData____new___(cls,args)
177 def MEDCouplingMEDFileFieldsnew(cls,*args):
178     import _MEDLoader
179     return _MEDLoader.MEDFileFields____new___(cls,args)
180 def MEDCouplingMEDFileField1TSnew(cls,*args):
181     import _MEDLoader
182     return _MEDLoader.MEDFileField1TS____new___(cls,args)
183 def MEDCouplingMEDFileFieldMultiTSnew(cls,*args):
184     import _MEDLoader
185     return _MEDLoader.MEDFileFieldMultiTS____new___(cls,args)
186 def MEDCouplingMEDFileIntField1TSnew(cls,*args):
187     import _MEDLoader
188     return _MEDLoader.MEDFileIntField1TS____new___(cls,args)
189 def MEDCouplingMEDFileIntFieldMultiTSnew(cls,*args):
190     import _MEDLoader
191     return _MEDLoader.MEDFileIntFieldMultiTS____new___(cls,args)
192 def MEDCouplingMEDFileFloatField1TSnew(cls,*args):
193     import _MEDLoader
194     return _MEDLoader.MEDFileFloatField1TS____new___(cls,args)
195 def MEDCouplingMEDFileFloatFieldMultiTSnew(cls,*args):
196     import _MEDLoader
197     return _MEDLoader.MEDFileFloatFieldMultiTS____new___(cls,args)
198 def MEDCouplingMEDFileParametersnew(cls,*args):
199     import _MEDLoader
200     return _MEDLoader.MEDFileParameters____new___(cls,args)
201 %}
202
203 %include "MEDCouplingFinalize.i"
204
205 %pythoncode %{
206 MEDFileMeshesIterator.__next__ = MEDFileMeshesIterator.next
207 MEDFileAnyTypeFieldMultiTSIterator.__next__ = MEDFileAnyTypeFieldMultiTSIterator.next
208 MEDFileFieldsIterator.__next__ = MEDFileFieldsIterator.next
209 %}
210
211 %pythoncode %{
212 MEDFileUMesh.__new__=classmethod(MEDCouplingMEDFileUMeshnew)
213 del MEDCouplingMEDFileUMeshnew
214 MEDFileCMesh.__new__=classmethod(MEDCouplingMEDFileCMeshnew)
215 del MEDCouplingMEDFileCMeshnew
216 MEDFileCurveLinearMesh.__new__=classmethod(MEDCouplingMEDFileCurveLinearMeshnew)
217 del MEDCouplingMEDFileCurveLinearMeshnew
218 MEDFileData.__new__=classmethod(MEDCouplingMEDFileDatanew)
219 del MEDCouplingMEDFileDatanew
220 MEDFileMeshes.__new__=classmethod(MEDCouplingMEDFileMeshesnew)
221 del MEDCouplingMEDFileMeshesnew
222 MEDFileFields.__new__=classmethod(MEDCouplingMEDFileFieldsnew)
223 del MEDCouplingMEDFileFieldsnew
224 MEDFileField1TS.__new__=classmethod(MEDCouplingMEDFileField1TSnew)
225 del MEDCouplingMEDFileField1TSnew
226 MEDFileFieldMultiTS.__new__=classmethod(MEDCouplingMEDFileFieldMultiTSnew)
227 del MEDCouplingMEDFileFieldMultiTSnew
228 MEDFileIntField1TS.__new__=classmethod(MEDCouplingMEDFileIntField1TSnew)
229 del MEDCouplingMEDFileIntField1TSnew
230 MEDFileIntFieldMultiTS.__new__=classmethod(MEDCouplingMEDFileIntFieldMultiTSnew)
231 del MEDCouplingMEDFileIntFieldMultiTSnew
232 MEDFileFloatField1TS.__new__=classmethod(MEDCouplingMEDFileFloatField1TSnew)
233 del MEDCouplingMEDFileFloatField1TSnew
234 MEDFileFloatFieldMultiTS.__new__=classmethod(MEDCouplingMEDFileFloatFieldMultiTSnew)
235 del MEDCouplingMEDFileFloatFieldMultiTSnew
236 MEDFileParameters.__new__=classmethod(MEDCouplingMEDFileParametersnew)
237 del MEDCouplingMEDFileParametersnew
238 %}