]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
4th dimension of DataArrayDouble::findCommonTuples
authorageay <ageay>
Thu, 14 Nov 2013 15:10:34 +0000 (15:10 +0000)
committerageay <ageay>
Thu, 14 Nov 2013 15:10:34 +0000 (15:10 +0000)
src/MEDCoupling/Test/MEDCouplingBasicsTest4.cxx
src/MEDCoupling_Swig/MEDCouplingBasicsTest.py

index 8170b70853f8991e257ca0ef80508a0b814dd4c3..d498dc0f4d23818b5ffedc36fd83f70c36afdd0e 100644 (file)
@@ -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();
index fea11b063fadeb31bb513667a257e1a7b0edd543..78f59e28135855b8552bc405993080bfd9d3d302 100644 (file)
@@ -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