From: ageay Date: Wed, 3 Nov 2010 06:47:54 +0000 (+0000) Subject: Bug in test not seen with valgrind, memory corruption fix. X-Git-Tag: V5_1_5~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e55c7d156398e6af8369c787fb31e3bdfa053308;p=tools%2Fmedcoupling.git Bug in test not seen with valgrind, memory corruption fix. --- diff --git a/src/ParaMEDMEMTest/ParaMEDMEMTest_InterpKernelDEC.cxx b/src/ParaMEDMEMTest/ParaMEDMEMTest_InterpKernelDEC.cxx index af66e57bb..f4e941ee0 100644 --- a/src/ParaMEDMEMTest/ParaMEDMEMTest_InterpKernelDEC.cxx +++ b/src/ParaMEDMEMTest/ParaMEDMEMTest_InterpKernelDEC.cxx @@ -1948,11 +1948,11 @@ void ParaMEDMEMTest::testInterpKernelDEC3DSurfEmptyBBox() if(source_group->containsMyRank()) { double coords[15]={1.,0.,0., 2.,0.,0., 2.,2.,0., 0.,2.,0., 0.5,0.5,1.}; - int conn[4]={0,1,2,3}; + int conn[7]={0,1,2,3,0,3,4}; mesh=MEDCouplingUMesh::New("Source mesh Proc0",2); mesh->allocateCells(2); mesh->insertNextCell(INTERP_KERNEL::NORM_QUAD4,4,conn); - mesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,2,conn+4); + mesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,3,conn+4); mesh->finishInsertingCells(); DataArrayDouble *myCoords=DataArrayDouble::New(); myCoords->alloc(5,3);