]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Addition of MEDCouplingCMesh::clone and FieldDouble::getValueOnPos
authorageay <ageay>
Fri, 10 Feb 2012 11:23:54 +0000 (11:23 +0000)
committerageay <ageay>
Fri, 10 Feb 2012 11:23:54 +0000 (11:23 +0000)
src/MEDCoupling_Swig/MEDCoupling.i

index 243af238da0f03fdac8d033e7676432c3b0d04fc..15a50a65f59eca0c2c7928a87ca7c972a84b8138 100644 (file)
@@ -268,6 +268,7 @@ using namespace INTERP_KERNEL;
 %newobject ParaMEDMEM::MEDCouplingExtrudedMesh::New;
 %newobject ParaMEDMEM::MEDCouplingExtrudedMesh::build3DUnstructuredMesh;
 %newobject ParaMEDMEM::MEDCouplingCMesh::New;
+%newobject ParaMEDMEM::MEDCouplingCMesh::clone;
 %newobject ParaMEDMEM::MEDCouplingCMesh::getCoordsAt;
 %newobject ParaMEDMEM::MEDCouplingMultiFields::New;
 %newobject ParaMEDMEM::MEDCouplingMultiFields::deepCpy;
@@ -1462,6 +1463,7 @@ namespace ParaMEDMEM
   {
   public:
     static MEDCouplingCMesh *New();
+    MEDCouplingCMesh *clone(bool recDeepCpy) const;
     void setCoords(const DataArrayDouble *coordsX,
                    const DataArrayDouble *coordsY=0,
                    const DataArrayDouble *coordsZ=0) throw(INTERP_KERNEL::Exception);
@@ -4537,6 +4539,14 @@ namespace ParaMEDMEM
         return convertDblArrToPyList(res,sz);
       }
 
+       PyObject *getValueOnPos(int i, int j, int k) const throw(INTERP_KERNEL::Exception)
+       {
+         int sz=self->getNumberOfComponents();
+         INTERP_KERNEL::AutoPtr<double> res=new double[sz];
+         self->getValueOnPos(i,j,k,res);
+         return convertDblArrToPyList(res,sz);
+       }
+
       DataArrayDouble *getValueOnMulti(PyObject *li) const throw(INTERP_KERNEL::Exception)
       {
         void *da=0;