]> SALOME platform Git repositories - modules/med.git/blob - medtool/src/RENUMBER_Swig/MEDRenumber.i
Salome HOME
Move medtool folder to MED base repository
[modules/med.git] / medtool / src / RENUMBER_Swig / MEDRenumber.i
1 // Copyright (C) 2007-2015  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
20 %include "MEDRenumberCommon.i"
21
22 %pythoncode %{
23 def ParaMEDMEMDataArrayDoublenew(cls,*args):
24     import _MEDRenumber
25     return _MEDRenumber.DataArrayDouble____new___(cls,args)
26 def ParaMEDMEMDataArrayDoubleIadd(self,*args):
27     import _MEDRenumber
28     return _MEDRenumber.DataArrayDouble____iadd___(self, self, *args)
29 def ParaMEDMEMDataArrayDoubleIsub(self,*args):
30     import _MEDRenumber
31     return _MEDRenumber.DataArrayDouble____isub___(self, self, *args)
32 def ParaMEDMEMDataArrayDoubleImul(self,*args):
33     import _MEDRenumber
34     return _MEDRenumber.DataArrayDouble____imul___(self, self, *args)
35 def ParaMEDMEMDataArrayDoubleIdiv(self,*args):
36     import _MEDRenumber
37     return _MEDRenumber.DataArrayDouble____idiv___(self, self, *args)
38 def ParaMEDMEMDataArrayDoubleIpow(self,*args):
39     import _MEDRenumber
40     return _MEDRenumber.DataArrayDouble____ipow___(self, self, *args)
41 def ParaMEDMEMDataArrayIntnew(cls,*args):
42     import _MEDRenumber
43     return _MEDRenumber.DataArrayInt____new___(cls,args)
44 def ParaMEDMEMDataArrayIntIadd(self,*args):
45     import _MEDRenumber
46     return _MEDRenumber.DataArrayInt____iadd___(self, self, *args)
47 def ParaMEDMEMDataArrayIntIsub(self,*args):
48     import _MEDRenumber
49     return _MEDRenumber.DataArrayInt____isub___(self, self, *args)
50 def ParaMEDMEMDataArrayIntImul(self,*args):
51     import _MEDRenumber
52     return _MEDRenumber.DataArrayInt____imul___(self, self, *args)
53 def ParaMEDMEMDataArrayIntIdiv(self,*args):
54     import _MEDRenumber
55     return _MEDRenumber.DataArrayInt____idiv___(self, self, *args)
56 def ParaMEDMEMDataArrayIntImod(self,*args):
57     import _MEDRenumber
58     return _MEDRenumber.DataArrayInt____imod___(self, self, *args)
59 def ParaMEDMEMDataArrayIntIpow(self,*args):
60     import _MEDRenumber
61     return _MEDRenumber.DataArrayInt____ipow___(self, self, *args)
62 def ParaMEDMEMDataArrayDoubleTupleIadd(self,*args):
63     import _MEDRenumber
64     return _MEDRenumber.DataArrayDoubleTuple____iadd___(self, self, *args)
65 def ParaMEDMEMDataArrayDoubleTupleIsub(self,*args):
66     import _MEDRenumber
67     return _MEDRenumber.DataArrayDoubleTuple____isub___(self, self, *args)
68 def ParaMEDMEMDataArrayDoubleTupleImul(self,*args):
69     import _MEDRenumber
70     return _MEDRenumber.DataArrayDoubleTuple____imul___(self, self, *args)
71 def ParaMEDMEMDataArrayDoubleTupleIdiv(self,*args):
72     import _MEDRenumber
73     return _MEDRenumber.DataArrayDoubleTuple____idiv___(self, self, *args)
74 def ParaMEDMEMDataArrayIntTupleIadd(self,*args):
75     import _MEDRenumber
76     return _MEDRenumber.DataArrayIntTuple____iadd___(self, self, *args)
77 def ParaMEDMEMDataArrayIntTupleIsub(self,*args):
78     import _MEDRenumber
79     return _MEDRenumber.DataArrayIntTuple____isub___(self, self, *args)
80 def ParaMEDMEMDataArrayIntTupleImul(self,*args):
81     import _MEDRenumber
82     return _MEDRenumber.DataArrayIntTuple____imul___(self, self, *args)
83 def ParaMEDMEMDataArrayIntTupleIdiv(self,*args):
84     import _MEDRenumber
85     return _MEDRenumber.DataArrayIntTuple____idiv___(self, self, *args)
86 def ParaMEDMEMDataArrayIntTupleImod(self,*args):
87     import _MEDRenumber
88     return _MEDRenumber.DataArrayIntTuple____imod___(self, self, *args)
89 %}
90
91
92 %pythoncode %{
93 InterpKernelException.__reduce__=INTERPKERNELExceptionReduce
94 DataArrayDouble.__new__=classmethod(ParaMEDMEMDataArrayDoublenew)
95 DataArrayDouble.__iadd__=ParaMEDMEMDataArrayDoubleIadd
96 DataArrayDouble.__isub__=ParaMEDMEMDataArrayDoubleIsub
97 DataArrayDouble.__imul__=ParaMEDMEMDataArrayDoubleImul
98 DataArrayDouble.__idiv__=ParaMEDMEMDataArrayDoubleIdiv
99 DataArrayDouble.__ipow__=ParaMEDMEMDataArrayDoubleIpow
100
101 DataArrayInt.__new__=classmethod(ParaMEDMEMDataArrayIntnew)
102 DataArrayInt.__iadd__=ParaMEDMEMDataArrayIntIadd
103 DataArrayInt.__isub__=ParaMEDMEMDataArrayIntIsub
104 DataArrayInt.__imul__=ParaMEDMEMDataArrayIntImul
105 DataArrayInt.__idiv__=ParaMEDMEMDataArrayIntIdiv
106 DataArrayInt.__imod__=ParaMEDMEMDataArrayIntImod
107 DataArrayInt.__ipow__=ParaMEDMEMDataArrayIntIpow
108
109 DataArrayDoubleTuple.__iadd__=ParaMEDMEMDataArrayDoubleTupleIadd
110 DataArrayDoubleTuple.__isub__=ParaMEDMEMDataArrayDoubleTupleIsub
111 DataArrayDoubleTuple.__imul__=ParaMEDMEMDataArrayDoubleTupleImul
112 DataArrayDoubleTuple.__idiv__=ParaMEDMEMDataArrayDoubleTupleIdiv
113
114 DataArrayIntTuple.__iadd__=ParaMEDMEMDataArrayIntTupleIadd
115 DataArrayIntTuple.__isub__=ParaMEDMEMDataArrayIntTupleIsub
116 DataArrayIntTuple.__imul__=ParaMEDMEMDataArrayIntTupleImul
117 DataArrayIntTuple.__idiv__=ParaMEDMEMDataArrayIntTupleIdiv
118 DataArrayIntTuple.__imod__=ParaMEDMEMDataArrayIntTupleImod
119
120 del INTERPKERNELExceptionReduce
121 del ParaMEDMEMDataArrayDoublenew
122 del ParaMEDMEMDataArrayDoubleIadd
123 del ParaMEDMEMDataArrayDoubleIsub
124 del ParaMEDMEMDataArrayDoubleImul
125 del ParaMEDMEMDataArrayDoubleIdiv
126 del ParaMEDMEMDataArrayIntnew
127 del ParaMEDMEMDataArrayIntIadd
128 del ParaMEDMEMDataArrayIntIsub
129 del ParaMEDMEMDataArrayIntImul
130 del ParaMEDMEMDataArrayIntIdiv
131 del ParaMEDMEMDataArrayIntImod
132 del ParaMEDMEMDataArrayDoubleTupleIadd
133 del ParaMEDMEMDataArrayDoubleTupleIsub
134 del ParaMEDMEMDataArrayDoubleTupleImul
135 del ParaMEDMEMDataArrayDoubleTupleIdiv
136 del ParaMEDMEMDataArrayIntTupleIadd
137 del ParaMEDMEMDataArrayIntTupleIsub
138 del ParaMEDMEMDataArrayIntTupleImul
139 del ParaMEDMEMDataArrayIntTupleIdiv
140 del ParaMEDMEMDataArrayIntTupleImod
141 %}