]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Some new functionnalities with arrays in python.
authorageay <ageay>
Fri, 20 Apr 2012 14:46:48 +0000 (14:46 +0000)
committerageay <ageay>
Fri, 20 Apr 2012 14:46:48 +0000 (14:46 +0000)
src/MEDCoupling_Swig/MEDCoupling.i

index 9c63d2e3c9c979e3b3d04bb7938f2cc5fa818c55..20a3ab3a3368f2e6e7a6a4045736778d3a72b294 100644 (file)
@@ -1671,6 +1671,11 @@ namespace ParaMEDMEM
   {
     return self->doubleValue();
   }
+
+  DataArrayDouble *buildDADouble()
+  {
+    return self->buildDADouble(1,self->getNumberOfCompo());
+  }
   
   PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception)
   {
@@ -3076,6 +3081,11 @@ namespace ParaMEDMEM
   {
     return self->intValue();
   }
+
+  DataArrayInt *buildDAInt()
+  {
+    return self->buildDAInt(1,self->getNumberOfCompo());
+  }
   
   PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception)
   {