]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Improve perf of P1P0,P0P1,P1P1
authorageay <ageay>
Mon, 5 Aug 2013 12:50:18 +0000 (12:50 +0000)
committerageay <ageay>
Mon, 5 Aug 2013 12:50:18 +0000 (12:50 +0000)
src/MEDCoupling_Swig/MEDCouplingBasicsTest.py
src/MEDCoupling_Swig/MEDCouplingCommon.i

index 7ebacabddf7a70254dc6bf642621beffc56ed151..19d4fed7dcb2add73d4efd18c4c9ed0f441fa64c 100644 (file)
@@ -13637,7 +13637,7 @@ class MEDCouplingBasicsTest(unittest.TestCase):
         m4.allocateCells(0)
         m4.insertNextCell(NORM_HEXA8,[3,2,1,0,7,6,5,4])
         c,a,b=m4.tetrahedrize(PLANAR_FACE_6)
-        m4.checkCoherency2()
+        c.checkCoherency2()
         a.isEqual(DataArrayInt([0,0,0,0,0,0]))
         self.assertEqual(0,b)
         self.assertEqual(c.getCoords().getHiddenCppPointer(),coords.getHiddenCppPointer())
index 3e28a515c6c2d929f5878b6a4fab49d84a99503b..7959ab69485a1735b0130c4af583f1d103a612c9 100644 (file)
@@ -2022,13 +2022,15 @@ namespace ParaMEDMEM
         return ret;
       }
 
-      PyObject *simplexize3D(int policy) throw(INTERP_KERNEL::Exception)
+      PyObject *tetrahedrize(int policy) throw(INTERP_KERNEL::Exception)
       {
-        int ret1(-1);
-        DataArrayInt *ret0(self->simplexize3D(policy,ret1));
-        PyObject *ret=PyTuple_New(2);
-        PyTuple_SetItem(ret,0,SWIG_NewPointerObj(SWIG_as_voidptr(ret0),SWIGTYPE_p_ParaMEDMEM__DataArrayInt, SWIG_POINTER_OWN | 0 ));
-        PyTuple_SetItem(ret,1,PyInt_FromLong(ret1));
+        int ret2(-1);
+        DataArrayInt *ret1(0);
+        MEDCoupling1SGTUMesh *ret0(self->tetrahedrize(policy,ret1,ret2));
+        PyObject *ret=PyTuple_New(3);
+        PyTuple_SetItem(ret,0,SWIG_NewPointerObj(SWIG_as_voidptr(ret0),SWIGTYPE_p_ParaMEDMEM__MEDCoupling1SGTUMesh, SWIG_POINTER_OWN | 0 ));
+        PyTuple_SetItem(ret,1,SWIG_NewPointerObj(SWIG_as_voidptr(ret1),SWIGTYPE_p_ParaMEDMEM__DataArrayInt, SWIG_POINTER_OWN | 0 ));
+        PyTuple_SetItem(ret,2,PyInt_FromLong(ret2));
         return ret;
       }