From e55c7d156398e6af8369c787fb31e3bdfa053308 Mon Sep 17 00:00:00 2001 From: ageay Date: Wed, 3 Nov 2010 06:47:54 +0000 Subject: [PATCH] Bug in test not seen with valgrind, memory corruption fix. --- src/ParaMEDMEMTest/ParaMEDMEMTest_InterpKernelDEC.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2