]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Correction of big bug on fillCellIdsToKeepFromNodeIds
authorageay <ageay>
Mon, 20 Feb 2012 16:25:44 +0000 (16:25 +0000)
committerageay <ageay>
Mon, 20 Feb 2012 16:25:44 +0000 (16:25 +0000)
src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx
src/MEDCoupling_Swig/MEDCouplingBasicsTest.py

index 48f9d8fa554a6226534743e70f2ad4bd26d29aa4..6c68a4e4b63dc3d29482a8fc47822583ef6c7965 100644 (file)
@@ -619,8 +619,8 @@ void MEDCouplingBasicsTest1::testBuildPartOfMySelf()
 void MEDCouplingBasicsTest1::testBuildPartOfMySelfNode()
 {
   MEDCouplingUMesh *mesh=build2DTargetMesh_1();
-  const int tab1[2]={5,7};
-  MEDCouplingPointSet *subMeshSimple=mesh->buildPartOfMySelfNode(tab1,tab1+2,true);
+  const int tab1[4]={5,7,8,4};
+  MEDCouplingPointSet *subMeshSimple=mesh->buildPartOfMySelfNode(tab1,tab1+4,true);
   MEDCouplingUMesh *subMesh=dynamic_cast<MEDCouplingUMesh *>(subMeshSimple);
   CPPUNIT_ASSERT(subMesh);
   CPPUNIT_ASSERT_EQUAL(1,(int)subMesh->getAllTypes().size());
index 21f200d03404d5db7311c9f63f636a9a6dd05feb..a1988d6874eedb4342b9db9d5e50e106a097fda2 100644 (file)
@@ -405,8 +405,8 @@ class MEDCouplingBasicsTest(unittest.TestCase):
     
     def testBuildPartOfMySelfNode(self):
         mesh=MEDCouplingDataForTest.build2DTargetMesh_1();
-        tab1=[5,7]
-        subMesh=mesh.buildPartOfMySelfNode(tab1[0:2],True);
+        tab1=[5,7,8,4]
+        subMesh=mesh.buildPartOfMySelfNode(tab1[0:4],True);
         self.assertTrue(isinstance(subMesh,MEDCouplingUMesh))
         self.assertEqual(1,len(subMesh.getAllTypes()));
         self.assertEqual(NORM_QUAD4,subMesh.getAllTypes()[0]);