From ed660a54b2a0e5e9f81efee98ce988ca82475e02 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 14 Nov 2013 15:10:34 +0000 Subject: [PATCH] 4th dimension of DataArrayDouble::findCommonTuples --- src/MEDCoupling/Test/MEDCouplingBasicsTest4.cxx | 2 +- src/MEDCoupling_Swig/MEDCouplingBasicsTest.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MEDCoupling/Test/MEDCouplingBasicsTest4.cxx b/src/MEDCoupling/Test/MEDCouplingBasicsTest4.cxx index 8170b7085..d498dc0f4 100644 --- a/src/MEDCoupling/Test/MEDCouplingBasicsTest4.cxx +++ b/src/MEDCoupling/Test/MEDCouplingBasicsTest4.cxx @@ -1833,7 +1833,7 @@ void MEDCouplingBasicsTest4::testDADFindCommonTuples1() CPPUNIT_ASSERT_EQUAL((std::size_t)1,cI->getNbOfElems()); CPPUNIT_ASSERT_EQUAL(0,cI->getIJ(0,0)); - da->alloc(6,4); //bad NumberOfComponents + da->alloc(6,5); //bad NumberOfComponents CPPUNIT_ASSERT_THROW(da->findCommonTuples(1e-2,-1,c,cI),INTERP_KERNEL::Exception); c->decrRef(); diff --git a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py index fea11b063..78f59e281 100644 --- a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py @@ -8101,8 +8101,8 @@ class MEDCouplingBasicsTest(unittest.TestCase): self.assertEqual(1,cI.getNbOfElems()); self.assertEqual([0],cI.getValues()) - array12=[0.]*(6*4) - da.setValues(array12,6,4) #bad NumberOfComponents + array12=[0.]*(6*5) + da.setValues(array12,6,5) #bad NumberOfComponents self.assertRaises(InterpKernelException, da.findCommonTuples, 1e-2); pass -- 2.39.2