Salome HOME
MEDCoupling python module is expected to be replaced by medcoupling python module
[tools/medcoupling.git] / src / MEDCoupling_Swig / MEDCoupling.i
1 // Copyright (C) 2007-2016  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 %module MEDCoupling
21
22 %include "MEDCouplingCommon.i"
23
24 %pythoncode %{
25 def MEDCouplingDataArrayDoubleIadd(self,*args):
26     import _MEDCoupling
27     return _MEDCoupling.DataArrayDouble____iadd___(self, self, *args)
28 def MEDCouplingDataArrayDoubleIsub(self,*args):
29     import _MEDCoupling
30     return _MEDCoupling.DataArrayDouble____isub___(self, self, *args)
31 def MEDCouplingDataArrayDoubleImul(self,*args):
32     import _MEDCoupling
33     return _MEDCoupling.DataArrayDouble____imul___(self, self, *args)
34 def MEDCouplingDataArrayDoubleIdiv(self,*args):
35     import _MEDCoupling
36     return _MEDCoupling.DataArrayDouble____idiv___(self, self, *args)
37 def MEDCouplingDataArrayDoubleIpow(self,*args):
38     import _MEDCoupling
39     return _MEDCoupling.DataArrayDouble____ipow___(self, self, *args)
40 def MEDCouplingFieldDoubleIadd(self,*args):
41     import _MEDCoupling
42     return _MEDCoupling.MEDCouplingFieldDouble____iadd___(self, self, *args)
43 def MEDCouplingFieldDoubleIsub(self,*args):
44     import _MEDCoupling
45     return _MEDCoupling.MEDCouplingFieldDouble____isub___(self, self, *args)
46 def MEDCouplingFieldDoubleImul(self,*args):
47     import _MEDCoupling
48     return _MEDCoupling.MEDCouplingFieldDouble____imul___(self, self, *args)
49 def MEDCouplingFieldDoubleIdiv(self,*args):
50     import _MEDCoupling
51     return _MEDCoupling.MEDCouplingFieldDouble____idiv___(self, self, *args)
52 def MEDCouplingFieldDoubleIpow(self,*args):
53     import _MEDCoupling
54     return _MEDCoupling.MEDCouplingFieldDouble____ipow___(self, self, *args)
55 def MEDCouplingDataArrayIntIadd(self,*args):
56     import _MEDCoupling
57     return _MEDCoupling.DataArrayInt____iadd___(self, self, *args)
58 def MEDCouplingDataArrayIntIsub(self,*args):
59     import _MEDCoupling
60     return _MEDCoupling.DataArrayInt____isub___(self, self, *args)
61 def MEDCouplingDataArrayIntImul(self,*args):
62     import _MEDCoupling
63     return _MEDCoupling.DataArrayInt____imul___(self, self, *args)
64 def MEDCouplingDataArrayIntIdiv(self,*args):
65     import _MEDCoupling
66     return _MEDCoupling.DataArrayInt____idiv___(self, self, *args)
67 def MEDCouplingDataArrayIntImod(self,*args):
68     import _MEDCoupling
69     return _MEDCoupling.DataArrayInt____imod___(self, self, *args)
70 def MEDCouplingDataArrayIntIpow(self,*args):
71     import _MEDCoupling
72     return _MEDCoupling.DataArrayInt____ipow___(self, self, *args)
73 def MEDCouplingDataArrayFloatIadd(self,*args):
74     import _MEDCoupling
75     return _MEDCoupling.DataArrayFloat____iadd___(self, self, *args)
76 def MEDCouplingDataArrayFloatIsub(self,*args):
77     import _MEDCoupling
78     return _MEDCoupling.DataArrayFloat____isub___(self, self, *args)
79 def MEDCouplingDataArrayFloatImul(self,*args):
80     import _MEDCoupling
81     return _MEDCoupling.DataArrayFloat____imul___(self, self, *args)
82 def MEDCouplingDataArrayFloatIdiv(self,*args):
83     import _MEDCoupling
84     return _MEDCoupling.DataArrayFloat____idiv___(self, self, *args)
85 def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
86     import _MEDCoupling
87     return _MEDCoupling.DataArrayDoubleTuple____iadd___(self, self, *args)
88 def MEDCouplingDataArrayDoubleTupleIsub(self,*args):
89     import _MEDCoupling
90     return _MEDCoupling.DataArrayDoubleTuple____isub___(self, self, *args)
91 def MEDCouplingDataArrayDoubleTupleImul(self,*args):
92     import _MEDCoupling
93     return _MEDCoupling.DataArrayDoubleTuple____imul___(self, self, *args)
94 def MEDCouplingDataArrayDoubleTupleIdiv(self,*args):
95     import _MEDCoupling
96     return _MEDCoupling.DataArrayDoubleTuple____idiv___(self, self, *args)
97 def MEDCouplingDataArrayIntTupleIadd(self,*args):
98     import _MEDCoupling
99     return _MEDCoupling.DataArrayIntTuple____iadd___(self, self, *args)
100 def MEDCouplingDataArrayIntTupleIsub(self,*args):
101     import _MEDCoupling
102     return _MEDCoupling.DataArrayIntTuple____isub___(self, self, *args)
103 def MEDCouplingDataArrayIntTupleImul(self,*args):
104     import _MEDCoupling
105     return _MEDCoupling.DataArrayIntTuple____imul___(self, self, *args)
106 def MEDCouplingDataArrayIntTupleIdiv(self,*args):
107     import _MEDCoupling
108     return _MEDCoupling.DataArrayIntTuple____idiv___(self, self, *args)
109 def MEDCouplingDataArrayIntTupleImod(self,*args):
110     import _MEDCoupling
111     return _MEDCoupling.DataArrayIntTuple____imod___(self, self, *args)
112 def MEDCouplingDenseMatrixIadd(self,*args):
113     import _MEDCoupling
114     return _MEDCoupling.DenseMatrix____iadd___(self, self, *args)
115 def MEDCouplingDenseMatrixIsub(self,*args):
116     import _MEDCoupling
117     return _MEDCoupling.DenseMatrix____isub___(self, self, *args)
118 %}
119
120 %include "MEDCouplingFinalize.i"
121
122 %pythoncode %{
123 print("""**************************************************************************************************
124 "MEDCoupling" python module as been replaced by "medcoupling" for Salome9.
125
126 "MEDCoupling" python module is still here for backwards compatibility reason but it is deprecated.
127
128 Please replace "MEDCoupling" by "medcoupling" in you import line right now to remove this message.
129 **************************************************************************************************""")
130 %}