]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Mon, 15 Feb 2010 07:32:46 +0000 (07:32 +0000)
committerageay <ageay>
Mon, 15 Feb 2010 07:32:46 +0000 (07:32 +0000)
src/MEDCoupling_Swig/Makefile.am
src/MEDCoupling_Swig/libMEDCoupling_Swig.i
src/MEDLoader/Swig/Makefile.am
src/ParaMEDMEM_Swig/Makefile.am

index 11bf1a0054a1f7e2ca49b52666b38257adda3d23..c1d31106d446cd6964c1fdf98b5934d7b6895fc5 100644 (file)
@@ -46,6 +46,4 @@ _libMEDCoupling_Swig_la_LDFLAGS  = -module $(PYTHON_LIBS) \
 
 CLEANFILES = libMEDCoupling_Swig_wrap.cxx libMEDCoupling_Swig.py
 
-nodist_salomescript_DATA= libMEDCoupling_Swig.py
-
-dist_salomescript_DATA= MEDCouplingBasicsTest.py
+dist_salomescript_DATA= MEDCouplingBasicsTest.py libMEDCoupling_Swig.py
index 448c6807425c318587625d1972db93495fdbd3a6..9e7222147140b31666be766c20bacb510cf4a211 100644 (file)
@@ -78,6 +78,7 @@ namespace ParaMEDMEM
   {
   public:
     static MEDCouplingUMesh *New();
+    static MEDCouplingUMesh *New(const char *meshName, int meshDim);
     MEDCouplingUMesh *clone(bool recDeepCpy) const;
     void updateTime();
     void checkCoherency() const throw(INTERP_KERNEL::Exception);
@@ -170,11 +171,14 @@ namespace ParaMEDMEM
   class MEDCouplingFieldDouble : public ParaMEDMEM::MEDCouplingField
   {
   public:
-    static MEDCouplingFieldDouble *New(TypeOfField type);
+    static MEDCouplingFieldDouble *New(TypeOfField type, TypeOfTimeDiscretization td=NO_TIME);
     MEDCouplingFieldDouble *clone(bool recDeepCpy) const;
     void checkCoherency() const throw(INTERP_KERNEL::Exception);
     double getIJ(int tupleId, int compoId) const;
     void setArray(DataArrayDouble *array);
+    void setTime(double val, int dt, int it);
+    void setStartTime(double val, int dt, int it);
+    void setEndTime(double val, int dt, int it);
     DataArrayDouble *getArray() const { return _array; }
     void applyLin(double a, double b, int compoId);
     int getNumberOfComponents() const;
@@ -207,6 +211,28 @@ namespace ParaMEDMEM
         PyList_SetItem(res,2,SWIG_From_int(tmp2));
         return res;
       }
+
+      PyObject *getStartTime()
+      {
+        int tmp1,tmp2;
+        double tmp0=self->getStartTime(tmp1,tmp2);
+        PyObject *res = PyList_New(3);
+        PyList_SetItem(res,0,SWIG_From_double(tmp0));
+        PyList_SetItem(res,1,SWIG_From_int(tmp1));
+        PyList_SetItem(res,2,SWIG_From_int(tmp2));
+        return res;
+      }
+
+      PyObject *getEndTime()
+      {
+        int tmp1,tmp2;
+        double tmp0=self->getEndTime(tmp1,tmp2);
+        PyObject *res = PyList_New(3);
+        PyList_SetItem(res,0,SWIG_From_double(tmp0));
+        PyList_SetItem(res,1,SWIG_From_int(tmp1));
+        PyList_SetItem(res,2,SWIG_From_int(tmp2));
+        return res;
+      }
     }
   };
 }
index 5c6951725e48fc43530738510ed535ddf5c715fc..41b83903a7ad0ae7e2dad50b29739ec0ee996b1e 100644 (file)
@@ -51,5 +51,5 @@ _libMEDLoader_Swig_la_LDFLAGS  = -module $(MED2_LIBS) $(HDF5_LIBS) $(PYTHON_LIBS
 
 CLEANFILES = libMEDLoader_Swig_wrap.cxx libMEDLoader_Swig.py
 
-nodist_salomescript_DATA= libMEDLoader_Swig.py
+dist_salomescript_DATA= libMEDLoader_Swig.py
 
index 84dcc5ae795f4336c38083117cd76126eb77b860..e6861f024a82935efd6ca4397b622ad53b107318 100644 (file)
@@ -57,9 +57,7 @@ endif
 
 CLEANFILES = libParaMEDMEM_Swig_wrap.cxx libParaMEDMEM_Swig.py
 
-nodist_salomescript_DATA= libParaMEDMEM_Swig.py
-
 dist_salomescript_DATA= test_InterpKernelDEC.py \
                        test_NonCoincidentDEC.py \
                        test_StructuredCoincodentDEC.py \
-                       ParaMEDMEM.py
+                       ParaMEDMEM.py libParaMEDMEM_Swig.py