From: ageay Date: Thu, 14 Nov 2013 15:10:34 +0000 (+0000) Subject: 4th dimension of DataArrayDouble::findCommonTuples X-Git-Tag: V7_3_0a1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a50461839a1194bd8793f968623394b942d32499;p=modules%2Fmed.git 4th dimension of DataArrayDouble::findCommonTuples --- 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