From: ageay Date: Mon, 20 Feb 2012 16:25:44 +0000 (+0000) Subject: Correction of big bug on fillCellIdsToKeepFromNodeIds X-Git-Tag: V6_main_FINAL~835 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bf769ce5a04ec85c289dd9fa75143be21c409d15;p=tools%2Fmedcoupling.git Correction of big bug on fillCellIdsToKeepFromNodeIds --- diff --git a/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx b/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx index 48f9d8fa5..6c68a4e4b 100644 --- a/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx +++ b/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx @@ -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(subMeshSimple); CPPUNIT_ASSERT(subMesh); CPPUNIT_ASSERT_EQUAL(1,(int)subMesh->getAllTypes().size()); diff --git a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py index 21f200d03..a1988d687 100644 --- a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py @@ -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]);