]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Extend operator __pow__ of MEDCouplingFieldDouble
authorageay <ageay>
Tue, 9 Apr 2013 14:47:57 +0000 (14:47 +0000)
committerageay <ageay>
Tue, 9 Apr 2013 14:47:57 +0000 (14:47 +0000)
src/MEDCoupling_Swig/MEDCoupling.i
src/MEDCoupling_Swig/MEDCouplingCommon.i
src/MEDCoupling_Swig/MEDCouplingFinalize.i
src/MEDCoupling_Swig/MEDCouplingRemapper.i
src/MEDLoader/Swig/MEDLoader.i
src/ParaMEDMEM_Swig/ParaMEDMEM.i

index 3c7aa96c5021ae3d7d2d43e3394ba409fc0ecfb8..9443f9b797e12932ecea1d3287527c23b8dd979f 100644 (file)
@@ -47,6 +47,9 @@ def ParaMEDMEMMEDCouplingFieldDoubleImul(self,*args):
 def ParaMEDMEMMEDCouplingFieldDoubleIdiv(self,*args):
     import _MEDCoupling
     return _MEDCoupling.MEDCouplingFieldDouble____idiv___(self, self, *args)
+def ParaMEDMEMMEDCouplingFieldDoubleIpow(self,*args):
+    import _MEDCoupling
+    return _MEDCoupling.MEDCouplingFieldDouble____ipow___(self, self, *args)
 def ParaMEDMEMDataArrayIntIadd(self,*args):
     import _MEDCoupling
     return _MEDCoupling.DataArrayInt____iadd___(self, self, *args)
index f4e7f69b87fdd46e99984444aa11b8e9ea7329c9..1c7efd9d4cadec5480cac87acf89991919deb905 100644 (file)
@@ -3701,6 +3701,13 @@ namespace ParaMEDMEM
         return trueSelf;
       }
 
+      PyObject *___ipow___(PyObject *trueSelf, const MEDCouplingFieldDouble& other) throw(INTERP_KERNEL::Exception)
+      {
+        *self^=other;
+        Py_XINCREF(trueSelf);
+        return trueSelf;
+      }
+
       static MEDCouplingFieldDouble *MergeFields(PyObject *li) throw(INTERP_KERNEL::Exception)
       {
         std::vector<const MEDCouplingFieldDouble *> tmp;
index 4c2c9df4f7fafda8a4e9415842fd3726bae01b6b..9a755af6622dc9698f8403503b75bfae0375620c 100644 (file)
@@ -35,6 +35,7 @@ MEDCouplingFieldDouble.__iadd__=ParaMEDMEMMEDCouplingFieldDoubleIadd
 MEDCouplingFieldDouble.__isub__=ParaMEDMEMMEDCouplingFieldDoubleIsub
 MEDCouplingFieldDouble.__imul__=ParaMEDMEMMEDCouplingFieldDoubleImul
 MEDCouplingFieldDouble.__idiv__=ParaMEDMEMMEDCouplingFieldDoubleIdiv
+MEDCouplingFieldDouble.__ipow__=ParaMEDMEMMEDCouplingFieldDoubleIpow
 
 DataArrayDoubleTuple.__iadd__=ParaMEDMEMDataArrayDoubleTupleIadd
 DataArrayDoubleTuple.__isub__=ParaMEDMEMDataArrayDoubleTupleIsub
@@ -55,6 +56,7 @@ del ParaMEDMEMMEDCouplingFieldDoubleIadd
 del ParaMEDMEMMEDCouplingFieldDoubleIsub
 del ParaMEDMEMMEDCouplingFieldDoubleImul
 del ParaMEDMEMMEDCouplingFieldDoubleIdiv
+del ParaMEDMEMMEDCouplingFieldDoubleIpow
 del ParaMEDMEMDataArrayIntIadd
 del ParaMEDMEMDataArrayIntIsub
 del ParaMEDMEMDataArrayIntImul
index 77c762e857adf84c40e4bd4979baf087bce10fa5..cfb1129e1c57d82e1d0bb013c7614270b2e88542 100644 (file)
@@ -122,6 +122,9 @@ def ParaMEDMEMMEDCouplingFieldDoubleImul(self,*args):
 def ParaMEDMEMMEDCouplingFieldDoubleIdiv(self,*args):
     import _MEDCouplingRemapper
     return _MEDCouplingRemapper.MEDCouplingFieldDouble____idiv___(self, self, *args)
+def ParaMEDMEMMEDCouplingFieldDoubleIpow(self,*args):
+    import _MEDCouplingRemapper
+    return _MEDCouplingRemapper.MEDCouplingFieldDouble____ipow___(self, self, *args)
 def ParaMEDMEMDataArrayIntIadd(self,*args):
     import _MEDCouplingRemapper
     return _MEDCouplingRemapper.DataArrayInt____iadd___(self, self, *args)
index 47ebf737b4cf1ede9a9c9b9c147c692c4038b1a3..96e20f5aa79b77d47654f954f7f77ebae43a38cc 100644 (file)
@@ -48,6 +48,9 @@ def ParaMEDMEMMEDCouplingFieldDoubleImul(self,*args):
 def ParaMEDMEMMEDCouplingFieldDoubleIdiv(self,*args):
     import _MEDLoader
     return _MEDLoader.MEDCouplingFieldDouble____idiv___(self, self, *args)
+def ParaMEDMEMMEDCouplingFieldDoubleIpow(self,*args):
+    import _MEDLoader
+    return _MEDLoader.MEDCouplingFieldDouble____ipow___(self, self, *args)
 def ParaMEDMEMDataArrayIntIadd(self,*args):
     import _MEDLoader
     return _MEDLoader.DataArrayInt____iadd___(self, self, *args)
index 9eadcf2cfe87c385e0c3d13d60f96657d15b8929..7eebdf86d9b8fd11481de86ee8f86be4e88ab23c 100644 (file)
@@ -298,6 +298,9 @@ def ParaMEDMEMMEDCouplingFieldDoubleImul(self,*args):
 def ParaMEDMEMMEDCouplingFieldDoubleIdiv(self,*args):
     import _ParaMEDMEM
     return _ParaMEDMEM.MEDCouplingFieldDouble____idiv___(self, self, *args)
+def ParaMEDMEMMEDCouplingFieldDoubleIpow(self,*args):
+    import _ParaMEDMEM
+    return _ParaMEDMEM.MEDCouplingFieldDouble____ipow___(self, self, *args)
 def ParaMEDMEMDataArrayIntIadd(self,*args):
     import _ParaMEDMEM
     return _ParaMEDMEM.DataArrayInt____iadd___(self, self, *args)