]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Tests again and again
authorageay <ageay>
Wed, 31 Jul 2013 14:03:57 +0000 (14:03 +0000)
committerageay <ageay>
Wed, 31 Jul 2013 14:03:57 +0000 (14:03 +0000)
src/MEDCoupling_Swig/MEDCouplingCommon.i

index a5603445d03d82fcaea96dd1cb63332fbeae692c..e7359c4d92e519b5f7866464e2ea56723db9d322 100644 (file)
@@ -3169,6 +3169,15 @@ namespace ParaMEDMEM
     PyTuple_SetItem(pyRet,1,SWIG_NewPointerObj(SWIG_as_voidptr(ret1),SWIGTYPE_p_ParaMEDMEM__DataArrayInt, SWIG_POINTER_OWN | 0 ));
     return pyRet;
   }
+
+  int getNumberOfTuplesExpectedRegardingCode(const MEDCouplingMesh *mesh, PyObject *code, PyObject *idsPerType) const throw(INTERP_KERNEL::Exception)
+  {
+    std::vector<int> inp0;
+    convertPyToNewIntArr4(code,1,3,inp0);
+    std::vector<const DataArrayInt *> inp1;
+    convertFromPyObjVectorOfObj<const ParaMEDMEM::DataArrayInt *>(idsPerType,SWIGTYPE_p_ParaMEDMEM__DataArrayInt,"DataArrayInt",inp1);
+    return self->getNumberOfTuplesExpectedRegardingCode(mesh,inp0,inp1);
+  }
 }
 
 %extend ParaMEDMEM::MEDCouplingFieldDiscretizationP0
@@ -3403,6 +3412,15 @@ namespace ParaMEDMEM
         std::copy(tmp.begin(),tmp.end(),ret->getPointer());
         return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_ParaMEDMEM__DataArrayInt, SWIG_POINTER_OWN | 0 );
       }
+      
+      int getNumberOfTuplesExpectedRegardingCode(PyObject *code, PyObject *idsPerType) const throw(INTERP_KERNEL::Exception)
+      {
+        std::vector<int> inp0;
+        convertPyToNewIntArr4(code,1,3,inp0);
+        std::vector<const DataArrayInt *> inp1;
+        convertFromPyObjVectorOfObj<const ParaMEDMEM::DataArrayInt *>(idsPerType,SWIGTYPE_p_ParaMEDMEM__DataArrayInt,"DataArrayInt",inp1);
+        return self->getNumberOfTuplesExpectedRegardingCode(inp0,inp1);
+      }
     }
   };