1 // Copyright (C) 2017-2024 CEA, EDF
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 (EDF R&D)
22 import MEDLoaderFinalize
23 MEDFileUMesh.reduceToCells = MEDLoaderFinalize.MEDFileUMeshReduceToCells
24 MEDFileUMesh.tetrahedrize = MEDLoaderFinalize.MEDFileUMeshTetrahedrize
25 MEDFileUMesh.fuseNodesAndCells = MEDLoaderFinalize.MEDFileUMeshFuseNodesAndCells
27 MEDFileMeshesIterator.__next__ = MEDFileMeshesIterator.next
28 MEDFileAnyTypeFieldMultiTSIterator.__next__ = MEDFileAnyTypeFieldMultiTSIterator.next
29 MEDFileFieldsIterator.__next__ = MEDFileFieldsIterator.next
33 def MEDCouplingMEDFileUMeshReduce(self):
34 return MEDCouplingStdReduceFunct,(MEDFileUMesh,((),(self.__getstate__()),))
35 MEDFileUMesh.__reduce__=MEDCouplingMEDFileUMeshReduce
36 del MEDCouplingMEDFileUMeshReduce
37 def MEDCouplingMEDFileCMeshReduce(self):
38 return MEDCouplingStdReduceFunct,(MEDFileCMesh,((self.serialize(),),(self.__getstate__()),))
39 MEDFileCMesh.__reduce__=MEDCouplingMEDFileCMeshReduce
40 del MEDCouplingMEDFileCMeshReduce
41 def MEDCouplingMEDFileCurveLinearMeshReduce(self):
42 return MEDCouplingStdReduceFunct,(MEDFileCurveLinearMesh,((self.serialize(),),(self.__getstate__()),))
43 MEDFileCurveLinearMesh.__reduce__=MEDCouplingMEDFileCurveLinearMeshReduce
44 del MEDCouplingMEDFileCurveLinearMeshReduce
45 def MEDCouplingMEDFileDataReduce(self):
46 return MEDCouplingStdReduceFunct,(MEDFileData,((self.serialize(),),(self.__getstate__()),))
47 MEDFileData.__reduce__=MEDCouplingMEDFileDataReduce
48 del MEDCouplingMEDFileDataReduce
49 def MEDCouplingMEDFileMeshesReduce(self):
50 return MEDCouplingStdReduceFunct,(MEDFileMeshes,((self.serialize(),),(self.__getstate__()),))
51 MEDFileMeshes.__reduce__=MEDCouplingMEDFileMeshesReduce
52 del MEDCouplingMEDFileMeshesReduce
53 def MEDCouplingMEDFileFieldsReduce(self):
54 return MEDCouplingStdReduceFunct,(MEDFileFields,((self.serialize(),),(self.__getstate__()),))
55 MEDFileFields.__reduce__=MEDCouplingMEDFileFieldsReduce
56 del MEDCouplingMEDFileFieldsReduce
57 def MEDCouplingMEDFileField1TSReduce(self):
58 return MEDCouplingStdReduceFunct,(MEDFileField1TS,((self.serialize(),),(self.__getstate__()),))
59 MEDFileField1TS.__reduce__=MEDCouplingMEDFileField1TSReduce
60 del MEDCouplingMEDFileField1TSReduce
61 def MEDCouplingMEDFileFieldMultiTSReduce(self):
62 return MEDCouplingStdReduceFunct,(MEDFileFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
63 MEDFileFieldMultiTS.__reduce__=MEDCouplingMEDFileFieldMultiTSReduce
64 del MEDCouplingMEDFileFieldMultiTSReduce
65 def MEDCouplingMEDFileIntField1TSReduce(self):
66 return MEDCouplingStdReduceFunct,(MEDFileIntField1TS,((self.serialize(),),(self.__getstate__()),))
67 MEDFileIntField1TS.__reduce__=MEDCouplingMEDFileIntField1TSReduce
68 def MEDCouplingMEDFileIntFieldMultiTSReduce(self):
69 return MEDCouplingStdReduceFunct,(MEDFileIntFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
70 MEDFileIntFieldMultiTS.__reduce__=MEDCouplingMEDFileIntFieldMultiTSReduce
71 del MEDCouplingMEDFileIntFieldMultiTSReduce
72 def MEDCouplingMEDFileFloatField1TSReduce(self):
73 return MEDCouplingStdReduceFunct,(MEDFileFloatField1TS,((self.serialize(),),(self.__getstate__()),))
74 MEDFileFloatField1TS.__reduce__=MEDCouplingMEDFileFloatField1TSReduce
75 def MEDCouplingMEDFileFloatFieldMultiTSReduce(self):
76 return MEDCouplingStdReduceFunct,(MEDFileFloatFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
77 MEDFileFloatFieldMultiTS.__reduce__=MEDCouplingMEDFileFloatFieldMultiTSReduce
78 del MEDCouplingMEDFileFloatFieldMultiTSReduce
79 def MEDCouplingMEDFileParametersReduce(self):
80 return MEDCouplingStdReduceFunct,(MEDFileParameters,((self.serialize(),),(self.__getstate__()),))
81 MEDFileParameters.__reduce__=MEDCouplingMEDFileParametersReduce
82 del MEDCouplingMEDFileParametersReduce