Salome HOME
[EDF27988] : Implementation of MEDCouplingUMesh.explodeMeshTo for MEDFileUMesh.reduce...
[tools/medcoupling.git] / src / MEDLoader / Swig / MEDLoaderFinalize.i
1 // Copyright (C) 2017-2023  CEA, EDF
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 (EDF R&D)
20
21 %pythoncode %{
22 import MEDLoaderFinalize
23 MEDFileUMesh.reduceToCells = MEDLoaderFinalize.MEDFileUMeshReduceToCells
24 del MEDLoaderFinalize
25 MEDFileMeshesIterator.__next__ = MEDFileMeshesIterator.next
26 MEDFileAnyTypeFieldMultiTSIterator.__next__ = MEDFileAnyTypeFieldMultiTSIterator.next
27 MEDFileFieldsIterator.__next__ = MEDFileFieldsIterator.next
28 %}
29
30 %pythoncode %{
31 def MEDCouplingMEDFileUMeshReduce(self):
32   return MEDCouplingStdReduceFunct,(MEDFileUMesh,((),(self.__getstate__()),))
33 MEDFileUMesh.__reduce__=MEDCouplingMEDFileUMeshReduce
34 del MEDCouplingMEDFileUMeshReduce
35 def MEDCouplingMEDFileCMeshReduce(self):
36   return MEDCouplingStdReduceFunct,(MEDFileCMesh,((self.serialize(),),(self.__getstate__()),))
37 MEDFileCMesh.__reduce__=MEDCouplingMEDFileCMeshReduce
38 del MEDCouplingMEDFileCMeshReduce
39 def MEDCouplingMEDFileCurveLinearMeshReduce(self):
40   return MEDCouplingStdReduceFunct,(MEDFileCurveLinearMesh,((self.serialize(),),(self.__getstate__()),))
41 MEDFileCurveLinearMesh.__reduce__=MEDCouplingMEDFileCurveLinearMeshReduce
42 del MEDCouplingMEDFileCurveLinearMeshReduce
43 def MEDCouplingMEDFileDataReduce(self):
44   return MEDCouplingStdReduceFunct,(MEDFileData,((self.serialize(),),(self.__getstate__()),))
45 MEDFileData.__reduce__=MEDCouplingMEDFileDataReduce
46 del MEDCouplingMEDFileDataReduce
47 def MEDCouplingMEDFileMeshesReduce(self):
48   return MEDCouplingStdReduceFunct,(MEDFileMeshes,((self.serialize(),),(self.__getstate__()),))
49 MEDFileMeshes.__reduce__=MEDCouplingMEDFileMeshesReduce
50 del MEDCouplingMEDFileMeshesReduce
51 def MEDCouplingMEDFileFieldsReduce(self):
52   return MEDCouplingStdReduceFunct,(MEDFileFields,((self.serialize(),),(self.__getstate__()),))
53 MEDFileFields.__reduce__=MEDCouplingMEDFileFieldsReduce
54 del MEDCouplingMEDFileFieldsReduce
55 def MEDCouplingMEDFileField1TSReduce(self):
56   return MEDCouplingStdReduceFunct,(MEDFileField1TS,((self.serialize(),),(self.__getstate__()),))
57 MEDFileField1TS.__reduce__=MEDCouplingMEDFileField1TSReduce
58 del MEDCouplingMEDFileField1TSReduce
59 def MEDCouplingMEDFileFieldMultiTSReduce(self):
60   return MEDCouplingStdReduceFunct,(MEDFileFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
61 MEDFileFieldMultiTS.__reduce__=MEDCouplingMEDFileFieldMultiTSReduce
62 del MEDCouplingMEDFileFieldMultiTSReduce
63 def MEDCouplingMEDFileIntField1TSReduce(self):
64   return MEDCouplingStdReduceFunct,(MEDFileIntField1TS,((self.serialize(),),(self.__getstate__()),))
65 MEDFileIntField1TS.__reduce__=MEDCouplingMEDFileIntField1TSReduce
66 def MEDCouplingMEDFileIntFieldMultiTSReduce(self):
67   return MEDCouplingStdReduceFunct,(MEDFileIntFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
68 MEDFileIntFieldMultiTS.__reduce__=MEDCouplingMEDFileIntFieldMultiTSReduce
69 del MEDCouplingMEDFileIntFieldMultiTSReduce
70 def MEDCouplingMEDFileFloatField1TSReduce(self):
71   return MEDCouplingStdReduceFunct,(MEDFileFloatField1TS,((self.serialize(),),(self.__getstate__()),))
72 MEDFileFloatField1TS.__reduce__=MEDCouplingMEDFileFloatField1TSReduce
73 def MEDCouplingMEDFileFloatFieldMultiTSReduce(self):
74   return MEDCouplingStdReduceFunct,(MEDFileFloatFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
75 MEDFileFloatFieldMultiTS.__reduce__=MEDCouplingMEDFileFloatFieldMultiTSReduce
76 del MEDCouplingMEDFileFloatFieldMultiTSReduce
77 def MEDCouplingMEDFileParametersReduce(self):
78   return MEDCouplingStdReduceFunct,(MEDFileParameters,((self.serialize(),),(self.__getstate__()),))
79 MEDFileParameters.__reduce__=MEDCouplingMEDFileParametersReduce
80 del MEDCouplingMEDFileParametersReduce
81 %}