]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug in test not seen with valgrind, memory corruption fix.
authorageay <ageay>
Wed, 3 Nov 2010 06:47:54 +0000 (06:47 +0000)
committerageay <ageay>
Wed, 3 Nov 2010 06:47:54 +0000 (06:47 +0000)
src/ParaMEDMEMTest/ParaMEDMEMTest_InterpKernelDEC.cxx

index af66e57bb3a986a905d22cdb7f1b24d03f73e48c..f4e941ee096acaaf6937091f048d36848643d543 100644 (file)
@@ -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);