From: ageay Date: Mon, 22 Feb 2010 10:44:01 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_1_main_FINAL~195 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8560511db92ddeb6c9f307d38f5941161d1ad2b2;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py index 6819f0d4a..80b17c1ad 100644 --- a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py @@ -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 diff --git a/src/MEDCoupling_Swig/libMEDCoupling_Swig.i b/src/MEDCoupling_Swig/libMEDCoupling_Swig.i index 9e7222147..71bda3253 100644 --- a/src/MEDCoupling_Swig/libMEDCoupling_Swig.i +++ b/src/MEDCoupling_Swig/libMEDCoupling_Swig.i @@ -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)