From bf769ce5a04ec85c289dd9fa75143be21c409d15 Mon Sep 17 00:00:00 2001 From: ageay Date: Mon, 20 Feb 2012 16:25:44 +0000 Subject: [PATCH] Correction of big bug on fillCellIdsToKeepFromNodeIds --- src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx | 4 ++-- src/MEDCoupling_Swig/MEDCouplingBasicsTest.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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]); -- 2.39.2