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