1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // Author : Anthony Geay (CEA/DEN)
21 %include "MEDLoaderCommon.i"
24 def MEDCouplingDataArrayDoublenew(cls,*args):
26 return _MEDLoader.DataArrayDouble____new___(cls,args)
27 def MEDCouplingDataArrayDoubleIadd(self,*args):
29 return _MEDLoader.DataArrayDouble____iadd___(self, self, *args)
30 def MEDCouplingDataArrayDoubleIsub(self,*args):
32 return _MEDLoader.DataArrayDouble____isub___(self, self, *args)
33 def MEDCouplingDataArrayDoubleImul(self,*args):
35 return _MEDLoader.DataArrayDouble____imul___(self, self, *args)
36 def MEDCouplingDataArrayDoubleIdiv(self,*args):
38 return _MEDLoader.DataArrayDouble____idiv___(self, self, *args)
39 def MEDCouplingDataArrayDoubleIpow(self,*args):
41 return _MEDLoader.DataArrayDouble____ipow___(self, self, *args)
42 def MEDCouplingFieldDoubleIadd(self,*args):
44 return _MEDLoader.MEDCouplingFieldDouble____iadd___(self, self, *args)
45 def MEDCouplingFieldDoubleIsub(self,*args):
47 return _MEDLoader.MEDCouplingFieldDouble____isub___(self, self, *args)
48 def MEDCouplingFieldDoubleImul(self,*args):
50 return _MEDLoader.MEDCouplingFieldDouble____imul___(self, self, *args)
51 def MEDCouplingFieldDoubleIdiv(self,*args):
53 return _MEDLoader.MEDCouplingFieldDouble____idiv___(self, self, *args)
54 def MEDCouplingFieldDoubleIpow(self,*args):
56 return _MEDLoader.MEDCouplingFieldDouble____ipow___(self, self, *args)
57 def MEDCouplingDataArrayFloatIadd(self,*args):
59 return _MEDLoader.DataArrayFloat____iadd___(self, self, *args)
60 def MEDCouplingDataArrayFloatIsub(self,*args):
62 return _MEDLoader.DataArrayFloat____isub___(self, self, *args)
63 def MEDCouplingDataArrayFloatImul(self,*args):
65 return _MEDLoader.DataArrayFloat____imul___(self, self, *args)
66 def MEDCouplingDataArrayFloatIdiv(self,*args):
68 return _MEDLoader.DataArrayFloat____idiv___(self, self, *args)
69 def MEDCouplingDataArrayIntIadd(self,*args):
71 return _MEDLoader.DataArrayInt____iadd___(self, self, *args)
72 def MEDCouplingDataArrayIntIsub(self,*args):
74 return _MEDLoader.DataArrayInt____isub___(self, self, *args)
75 def MEDCouplingDataArrayIntImul(self,*args):
77 return _MEDLoader.DataArrayInt____imul___(self, self, *args)
78 def MEDCouplingDataArrayIntIdiv(self,*args):
80 return _MEDLoader.DataArrayInt____idiv___(self, self, *args)
81 def MEDCouplingDataArrayIntImod(self,*args):
83 return _MEDLoader.DataArrayInt____imod___(self, self, *args)
84 def MEDCouplingDataArrayIntIpow(self,*args):
86 return _MEDLoader.DataArrayInt____ipow___(self, self, *args)
87 def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
89 return _MEDLoader.DataArrayDoubleTuple____iadd___(self, self, *args)
90 def MEDCouplingDataArrayDoubleTupleIsub(self,*args):
92 return _MEDLoader.DataArrayDoubleTuple____isub___(self, self, *args)
93 def MEDCouplingDataArrayDoubleTupleImul(self,*args):
95 return _MEDLoader.DataArrayDoubleTuple____imul___(self, self, *args)
96 def MEDCouplingDataArrayDoubleTupleIdiv(self,*args):
98 return _MEDLoader.DataArrayDoubleTuple____idiv___(self, self, *args)
99 def MEDCouplingDataArrayIntTupleIadd(self,*args):
101 return _MEDLoader.DataArrayIntTuple____iadd___(self, self, *args)
102 def MEDCouplingDataArrayIntTupleIsub(self,*args):
104 return _MEDLoader.DataArrayIntTuple____isub___(self, self, *args)
105 def MEDCouplingDataArrayIntTupleImul(self,*args):
107 return _MEDLoader.DataArrayIntTuple____imul___(self, self, *args)
108 def MEDCouplingDataArrayIntTupleIdiv(self,*args):
110 return _MEDLoader.DataArrayIntTuple____idiv___(self, self, *args)
111 def MEDCouplingDataArrayIntTupleImod(self,*args):
113 return _MEDLoader.DataArrayIntTuple____imod___(self, self, *args)
114 def ParaMEDMEMDenseMatrixIadd(self,*args):
116 return _MEDLoader.DenseMatrix____iadd___(self, self, *args)
117 def ParaMEDMEMDenseMatrixIsub(self,*args):
119 return _MEDLoader.DenseMatrix____isub___(self, self, *args)
123 def MEDCouplingMEDFileMeshesnew(cls,*args):
125 return _MEDLoader.MEDFileMeshes____new___(cls,args)
126 def MEDCouplingMEDFileFieldsnew(cls,*args):
128 return _MEDLoader.MEDFileFields____new___(cls,args)
129 def MEDCouplingMEDFileField1TSnew(cls,*args):
131 return _MEDLoader.MEDFileField1TS____new___(cls,args)
132 def MEDCouplingMEDFileFieldMultiTSnew(cls,*args):
134 return _MEDLoader.MEDFileFieldMultiTS____new___(cls,args)
135 def MEDCouplingMEDFileIntField1TSnew(cls,*args):
137 return _MEDLoader.MEDFileIntField1TS____new___(cls,args)
138 def MEDCouplingMEDFileIntFieldMultiTSnew(cls,*args):
140 return _MEDLoader.MEDFileIntFieldMultiTS____new___(cls,args)
141 def MEDCouplingMEDFileFloatField1TSnew(cls,*args):
143 return _MEDLoader.MEDFileFloatField1TS____new___(cls,args)
144 def MEDCouplingMEDFileFloatFieldMultiTSnew(cls,*args):
146 return _MEDLoader.MEDFileFloatFieldMultiTS____new___(cls,args)
147 def MEDCouplingMEDFileParametersnew(cls,*args):
149 return _MEDLoader.MEDFileParameters____new___(cls,args)
152 %include "MEDCouplingFinalize.i"
155 MEDFileMeshesIterator.__next__ = MEDFileMeshesIterator.next
156 MEDFileAnyTypeFieldMultiTSIterator.__next__ = MEDFileAnyTypeFieldMultiTSIterator.next
157 MEDFileFieldsIterator.__next__ = MEDFileFieldsIterator.next
161 def MEDCouplingMEDFileUMeshReduce(self):
162 return MEDCouplingStdReduceFunct,(MEDFileUMesh,((),(self.__getstate__()),))
163 MEDFileUMesh.__reduce__=MEDCouplingMEDFileUMeshReduce
164 del MEDCouplingMEDFileUMeshReduce
165 def MEDCouplingMEDFileCMeshReduce(self):
166 return MEDCouplingStdReduceFunct,(MEDFileCMesh,((self.serialize(),),(self.__getstate__()),))
167 MEDFileCMesh.__reduce__=MEDCouplingMEDFileCMeshReduce
168 del MEDCouplingMEDFileCMeshReduce
169 def MEDCouplingMEDFileCurveLinearMeshReduce(self):
170 return MEDCouplingStdReduceFunct,(MEDFileCurveLinearMesh,((self.serialize(),),(self.__getstate__()),))
171 MEDFileCurveLinearMesh.__reduce__=MEDCouplingMEDFileCurveLinearMeshReduce
172 del MEDCouplingMEDFileCurveLinearMeshReduce
173 def MEDCouplingMEDFileDataReduce(self):#"PyWrap of MEDFileData.__getnewargs__ : not implemented because numpy is not active in your configuration ! No serialization/unserialization available without numpy !"
174 return MEDCouplingStdReduceFunct,(MEDFileData,((self.serialize(),),(self.__getstate__()),))
175 MEDFileData.__reduce__=MEDCouplingMEDFileDataReduce
176 del MEDCouplingMEDFileDataReduce
177 def MEDCouplingMEDFileMeshesReduce(self):
178 return MEDCouplingStdReduceFunct,(MEDFileMeshes,((self.serialize(),),(self.__getstate__()),))
179 MEDFileMeshes.__reduce__=MEDCouplingMEDFileMeshesReduce
180 del MEDCouplingMEDFileMeshesReduce
181 def MEDCouplingMEDFileFieldsReduce(self):
182 return MEDCouplingStdReduceFunct,(MEDFileFields,((self.serialize(),),(self.__getstate__()),))
183 MEDFileFields.__reduce__=MEDCouplingMEDFileFieldsReduce
184 del MEDCouplingMEDFileFieldsReduce
185 def MEDCouplingMEDFileField1TSReduce(self):
186 return MEDCouplingStdReduceFunct,(MEDFileField1TS,((self.serialize(),),(self.__getstate__()),))
187 MEDFileField1TS.__reduce__=MEDCouplingMEDFileField1TSReduce
188 del MEDCouplingMEDFileField1TSReduce
189 def MEDCouplingMEDFileFieldMultiTSReduce(self):
190 return MEDCouplingStdReduceFunct,(MEDFileFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
191 MEDFileFieldMultiTS.__reduce__=MEDCouplingMEDFileFieldMultiTSReduce
192 del MEDCouplingMEDFileFieldMultiTSReduce
193 def MEDCouplingMEDFileIntField1TSReduce(self):
194 return MEDCouplingStdReduceFunct,(MEDFileIntField1TS,((self.serialize(),),(self.__getstate__()),))
195 MEDFileIntField1TS.__reduce__=MEDCouplingMEDFileIntField1TSReduce
196 def MEDCouplingMEDFileIntFieldMultiTSReduce(self):
197 return MEDCouplingStdReduceFunct,(MEDFileIntFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
198 MEDFileIntFieldMultiTS.__reduce__=MEDCouplingMEDFileIntFieldMultiTSReduce
199 del MEDCouplingMEDFileIntFieldMultiTSReduce
200 def MEDCouplingMEDFileFloatField1TSReduce(self):
201 return MEDCouplingStdReduceFunct,(MEDFileFloatField1TS,((self.serialize(),),(self.__getstate__()),))
202 MEDFileFloatField1TS.__reduce__=MEDCouplingMEDFileFloatField1TSReduce
203 def MEDCouplingMEDFileFloatFieldMultiTSReduce(self):
204 return MEDCouplingStdReduceFunct,(MEDFileFloatFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
205 MEDFileFloatFieldMultiTS.__reduce__=MEDCouplingMEDFileFloatFieldMultiTSReduce
206 del MEDCouplingMEDFileFloatFieldMultiTSReduce
207 def MEDCouplingMEDFileParametersReduce(self):
208 return MEDCouplingStdReduceFunct,(MEDFileParameters,((self.serialize(),),(self.__getstate__()),))
209 MEDFileParameters.__reduce__=MEDCouplingMEDFileParametersReduce
210 del MEDCouplingMEDFileParametersReduce