Salome HOME
3e5c37e87f97a9fe1260411d572c8e3990d743b1
[tools/medcoupling.git] / src / MEDCoupling_Swig / MEDCoupling.i
1 // Copyright (C) 2007-2020  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 #ifdef WIN32
21 %module MEDCouplingCompat
22 #else 
23 %module MEDCoupling
24 #endif
25
26 %include "MEDCouplingCommon.i"
27
28 %pythoncode %{
29 def MEDCouplingDataArrayDoubleIadd(self,*args):
30     import _MEDCoupling
31     return _MEDCoupling.DataArrayDouble____iadd___(self, self, *args)
32 def MEDCouplingDataArrayDoubleIsub(self,*args):
33     import _MEDCoupling
34     return _MEDCoupling.DataArrayDouble____isub___(self, self, *args)
35 def MEDCouplingDataArrayDoubleImul(self,*args):
36     import _MEDCoupling
37     return _MEDCoupling.DataArrayDouble____imul___(self, self, *args)
38 def MEDCouplingDataArrayDoubleIdiv(self,*args):
39     import _MEDCoupling
40     return _MEDCoupling.DataArrayDouble____idiv___(self, self, *args)
41 def MEDCouplingDataArrayDoubleIpow(self,*args):
42     import _MEDCoupling
43     return _MEDCoupling.DataArrayDouble____ipow___(self, self, *args)
44 def MEDCouplingFieldDoubleIadd(self,*args):
45     import _MEDCoupling
46     return _MEDCoupling.MEDCouplingFieldDouble____iadd___(self, self, *args)
47 def MEDCouplingFieldDoubleIsub(self,*args):
48     import _MEDCoupling
49     return _MEDCoupling.MEDCouplingFieldDouble____isub___(self, self, *args)
50 def MEDCouplingFieldDoubleImul(self,*args):
51     import _MEDCoupling
52     return _MEDCoupling.MEDCouplingFieldDouble____imul___(self, self, *args)
53 def MEDCouplingFieldDoubleIdiv(self,*args):
54     import _MEDCoupling
55     return _MEDCoupling.MEDCouplingFieldDouble____idiv___(self, self, *args)
56 def MEDCouplingFieldDoubleIpow(self,*args):
57     import _MEDCoupling
58     return _MEDCoupling.MEDCouplingFieldDouble____ipow___(self, self, *args)
59 def MEDCouplingDataArrayInt32Iadd(self,*args):
60     import _MEDCoupling
61     return _MEDCoupling.DataArrayInt32____iadd___(self, self, *args)
62 def MEDCouplingDataArrayInt32Isub(self,*args):
63     import _MEDCoupling
64     return _MEDCoupling.DataArrayInt32____isub___(self, self, *args)
65 def MEDCouplingDataArrayInt32Imul(self,*args):
66     import _MEDCoupling
67     return _MEDCoupling.DataArrayInt32____imul___(self, self, *args)
68 def MEDCouplingDataArrayInt32Idiv(self,*args):
69     import _MEDCoupling
70     return _MEDCoupling.DataArrayInt32____idiv___(self, self, *args)
71 def MEDCouplingDataArrayInt32Imod(self,*args):
72     import _MEDCoupling
73     return _MEDCoupling.DataArrayInt32____imod___(self, self, *args)
74 def MEDCouplingDataArrayInt32Ipow(self,*args):
75     import _MEDCoupling
76     return _MEDCoupling.DataArrayInt32____ipow___(self, self, *args)
77 def MEDCouplingDataArrayInt64Iadd(self,*args):
78     import _MEDCoupling
79     return _MEDCoupling.DataArrayInt64____iadd___(self, self, *args)
80 def MEDCouplingDataArrayInt64Isub(self,*args):
81     import _MEDCoupling
82     return _MEDCoupling.DataArrayInt64____isub___(self, self, *args)
83 def MEDCouplingDataArrayInt64Imul(self,*args):
84     import _MEDCoupling
85     return _MEDCoupling.DataArrayInt64____imul___(self, self, *args)
86 def MEDCouplingDataArrayInt64Idiv(self,*args):
87     import _MEDCoupling
88     return _MEDCoupling.DataArrayInt64____idiv___(self, self, *args)
89 def MEDCouplingDataArrayInt64Imod(self,*args):
90     import _MEDCoupling
91     return _MEDCoupling.DataArrayInt64____imod___(self, self, *args)
92 def MEDCouplingDataArrayInt64Ipow(self,*args):
93     import _MEDCoupling
94     return _MEDCoupling.DataArrayInt64____ipow___(self, self, *args)
95 def MEDCouplingDataArrayFloatIadd(self,*args):
96     import _MEDCoupling
97     return _MEDCoupling.DataArrayFloat____iadd___(self, self, *args)
98 def MEDCouplingDataArrayFloatIsub(self,*args):
99     import _MEDCoupling
100     return _MEDCoupling.DataArrayFloat____isub___(self, self, *args)
101 def MEDCouplingDataArrayFloatImul(self,*args):
102     import _MEDCoupling
103     return _MEDCoupling.DataArrayFloat____imul___(self, self, *args)
104 def MEDCouplingDataArrayFloatIdiv(self,*args):
105     import _MEDCoupling
106     return _MEDCoupling.DataArrayFloat____idiv___(self, self, *args)
107 def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
108     import _MEDCoupling
109     return _MEDCoupling.DataArrayDoubleTuple____iadd___(self, self, *args)
110 def MEDCouplingDataArrayDoubleTupleIsub(self,*args):
111     import _MEDCoupling
112     return _MEDCoupling.DataArrayDoubleTuple____isub___(self, self, *args)
113 def MEDCouplingDataArrayDoubleTupleImul(self,*args):
114     import _MEDCoupling
115     return _MEDCoupling.DataArrayDoubleTuple____imul___(self, self, *args)
116 def MEDCouplingDataArrayDoubleTupleIdiv(self,*args):
117     import _MEDCoupling
118     return _MEDCoupling.DataArrayDoubleTuple____idiv___(self, self, *args)
119 def MEDCouplingDataArrayInt32TupleIadd(self,*args):
120     import _MEDCoupling
121     return _MEDCoupling.DataArrayInt32Tuple____iadd___(self, self, *args)
122 def MEDCouplingDataArrayInt32TupleIsub(self,*args):
123     import _MEDCoupling
124     return _MEDCoupling.DataArrayInt32Tuple____isub___(self, self, *args)
125 def MEDCouplingDataArrayInt32TupleImul(self,*args):
126     import _MEDCoupling
127     return _MEDCoupling.DataArrayInt32Tuple____imul___(self, self, *args)
128 def MEDCouplingDataArrayInt32TupleIdiv(self,*args):
129     import _MEDCoupling
130     return _MEDCoupling.DataArrayInt32Tuple____idiv___(self, self, *args)
131 def MEDCouplingDataArrayInt32TupleImod(self,*args):
132     import _MEDCoupling
133     return _MEDCoupling.DataArrayInt32Tuple____imod___(self, self, *args)
134 def MEDCouplingDataArrayInt64TupleIadd(self,*args):
135     import _MEDCoupling
136     return _MEDCoupling.DataArrayInt64Tuple____iadd___(self, self, *args)
137 def MEDCouplingDataArrayInt64TupleIsub(self,*args):
138     import _MEDCoupling
139     return _MEDCoupling.DataArrayInt64Tuple____isub___(self, self, *args)
140 def MEDCouplingDataArrayInt64TupleImul(self,*args):
141     import _MEDCoupling
142     return _MEDCoupling.DataArrayInt64Tuple____imul___(self, self, *args)
143 def MEDCouplingDataArrayInt64TupleIdiv(self,*args):
144     import _MEDCoupling
145     return _MEDCoupling.DataArrayInt64Tuple____idiv___(self, self, *args)
146 def MEDCouplingDataArrayInt64TupleImod(self,*args):
147     import _MEDCoupling
148     return _MEDCoupling.DataArrayInt64Tuple____imod___(self, self, *args)
149 def MEDCouplingDenseMatrixIadd(self,*args):
150     import _MEDCoupling
151     return _MEDCoupling.DenseMatrix____iadd___(self, self, *args)
152 def MEDCouplingDenseMatrixIsub(self,*args):
153     import _MEDCoupling
154     return _MEDCoupling.DenseMatrix____isub___(self, self, *args)
155 %}
156
157 %include "MEDCouplingFinalize.i"
158
159 %pythoncode %{
160 print("""**************************************************************************************************
161 "MEDCoupling" python module as been replaced by "medcoupling" for Salome9.
162
163 "MEDCoupling" python module is still here for backwards compatibility reason but it is deprecated.
164
165 Please replace "MEDCoupling" by "medcoupling" in you import line right now to remove this message.
166 **************************************************************************************************""")
167 %}