]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Mon, 22 Feb 2010 10:44:01 +0000 (10:44 +0000)
committerageay <ageay>
Mon, 22 Feb 2010 10:44:01 +0000 (10:44 +0000)
src/MEDCoupling_Swig/MEDCouplingBasicsTest.py
src/MEDCoupling_Swig/libMEDCoupling_Swig.i

index 6819f0d4a3aa8605453dd0e1afe12d9d8aa96b83..80b17c1adf5fc97260e7c2cc32a5945d3506d189 100644 (file)
@@ -56,6 +56,9 @@ class MEDCouplingBasicsTest(unittest.TestCase):
         ## deep full recursively copy of field -> both field and mesh underneath copied
         field2=field.clone(True)
         field2.setMesh(field.getMesh().clone(True))
+        mesh3=mesh.clone(True)
+        field3=mesh3.fillFromAnalytic(ON_CELLS,2,"x*IVec+(y+z)*JVec")
+        field3.applyFunc("u*u*u+cos(u)")
         pass
     def setUp(self):
         pass
index 9e7222147140b31666be766c20bacb510cf4a211..71bda3253b2b15448cac76354289100439f5304d 100644 (file)
@@ -48,6 +48,7 @@ using namespace INTERP_KERNEL;
 %newobject ParaMEDMEM::DataArrayInt::performCpy;
 %newobject ParaMEDMEM::MEDCouplingFieldDouble::clone;
 %newobject ParaMEDMEM::MEDCouplingMesh::mergeMyselfWith;
+%newobject ParaMEDMEM::MEDCouplingMesh::fillFromAnalytic;
 %newobject ParaMEDMEM::MEDCouplingUMesh::buildPartOfMySelf;
 %newobject ParaMEDMEM::MEDCouplingPointSet::zipCoordsTraducer;
 %newobject ParaMEDMEM::MEDCouplingUMesh::getMeasureField;
@@ -187,6 +188,8 @@ namespace ParaMEDMEM
     void setNature(NatureOfField nat) throw(INTERP_KERNEL::Exception);
     void updateTime();
     bool mergeNodes(double eps);
+    void applyFunc(int nbOfComp, const char *func);
+    void applyFunc(const char *func);
     static MEDCouplingFieldDouble *mergeFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2);
     %extend {
       void setValues(PyObject *li)