From: ageay Date: Fri, 28 Jan 2011 12:00:24 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V6_main_FINAL~1087 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=af9ba12ed74f8568d5384c9be0e8f62837323746;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/MEDLoader/Swig/MEDLoaderDataForTest.py b/src/MEDLoader/Swig/MEDLoaderDataForTest.py index a0f370d8d..dd511e110 100644 --- a/src/MEDLoader/Swig/MEDLoaderDataForTest.py +++ b/src/MEDLoader/Swig/MEDLoaderDataForTest.py @@ -89,9 +89,9 @@ class MEDLoaderDataForTest: targetMesh.setName("2DMesh_2"); targetMesh.insertNextCell(NORM_TRI3,3,targetConn[0:3]) targetMesh.insertNextCell(NORM_TRI3,3,targetConn[3:6]) - targetMesh.insertNextCell(NORM_TRI6,6,targetConn[6:12]) targetMesh.insertNextCell(NORM_QUAD4,4,targetConn[12:16]) targetMesh.insertNextCell(NORM_QUAD4,4,targetConn[16:20]) + targetMesh.insertNextCell(NORM_TRI6,6,targetConn[6:12]) targetMesh.finishInsertingCells(); myCoords=DataArrayDouble.New(); myCoords.setValues(targetCoords,12,2); @@ -172,9 +172,9 @@ class MEDLoaderDataForTest: targetMesh.setName("3DSurfMesh_1"); targetMesh.insertNextCell(NORM_TRI3,3,targetConn[0:3]) targetMesh.insertNextCell(NORM_TRI3,3,targetConn[3:6]) - targetMesh.insertNextCell(NORM_TRI6,6,targetConn[6:12]) targetMesh.insertNextCell(NORM_QUAD4,4,targetConn[12:16]) targetMesh.insertNextCell(NORM_QUAD4,4,targetConn[16:20]) + targetMesh.insertNextCell(NORM_TRI6,6,targetConn[6:12]) targetMesh.insertNextCell(NORM_POLYGON,4,targetConn[20:24]) targetMesh.finishInsertingCells(); myCoords=DataArrayDouble.New(); @@ -186,7 +186,7 @@ class MEDLoaderDataForTest: def build3DMesh_2(cls): m3dsurfBase=MEDLoaderDataForTest.build3DSurfMesh_1(); - numbers=[0,1,3,4,5] + numbers=[0,1,2,3,5] m3dsurf=m3dsurfBase.buildPartOfMySelf(numbers,False); m1dBase=MEDLoaderDataForTest.build1DMesh_1(); numbers2=[0,1,2,3] @@ -254,13 +254,15 @@ class MEDLoaderDataForTest: refCoo2=[-1.0,1.0, -1.0,-1.0, 1.0,-1.0, -1.0,0.0, 0.0,-1.0, 0.0,0.0 ] _refCoo2=refCoo2; _gsCoo1=_gsCoo1[0:6]; + _gsCoo2=_gsCoo1 _wg1=_wg1[0:3]; - f.setGaussLocalizationOnType(NORM_TRI6,_refCoo2,_gsCoo1,_wg1); + _wg2=_wg1 refCoo3=[ 0.,0., 1.,0., 1.,1., 0.,1. ] _refCoo3=refCoo3; _gsCoo1=_gsCoo1[0:4]; _wg1=_wg1[0:2]; f.setGaussLocalizationOnType(NORM_QUAD4,_refCoo3,_gsCoo1,_wg1); + f.setGaussLocalizationOnType(NORM_TRI6,_refCoo2,_gsCoo2,_wg2); array=DataArrayDouble.New(); array.alloc(19,2); ptr=array.getPointer(); diff --git a/src/MEDLoader/Test/MEDLoaderTest.cxx b/src/MEDLoader/Test/MEDLoaderTest.cxx index c1d9b2468..22329241c 100644 --- a/src/MEDLoader/Test/MEDLoaderTest.cxx +++ b/src/MEDLoader/Test/MEDLoaderTest.cxx @@ -821,9 +821,9 @@ MEDCouplingUMesh *MEDLoaderTest::build2DMesh_2() targetMesh->setName("2DMesh_2"); targetMesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,3,targetConn); targetMesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,3,targetConn+3); - targetMesh->insertNextCell(INTERP_KERNEL::NORM_TRI6,6,targetConn+6); targetMesh->insertNextCell(INTERP_KERNEL::NORM_QUAD4,4,targetConn+12); targetMesh->insertNextCell(INTERP_KERNEL::NORM_QUAD4,4,targetConn+16); + targetMesh->insertNextCell(INTERP_KERNEL::NORM_TRI6,6,targetConn+6); targetMesh->finishInsertingCells(); DataArrayDouble *myCoords=DataArrayDouble::New(); myCoords->alloc(12,2); @@ -848,9 +848,9 @@ MEDCouplingUMesh *MEDLoaderTest::build3DSurfMesh_1() targetMesh->setName("3DSurfMesh_1"); targetMesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,3,targetConn); targetMesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,3,targetConn+3); - targetMesh->insertNextCell(INTERP_KERNEL::NORM_TRI6,6,targetConn+6); targetMesh->insertNextCell(INTERP_KERNEL::NORM_QUAD4,4,targetConn+12); targetMesh->insertNextCell(INTERP_KERNEL::NORM_QUAD4,4,targetConn+16); + targetMesh->insertNextCell(INTERP_KERNEL::NORM_TRI6,6,targetConn+6); targetMesh->insertNextCell(INTERP_KERNEL::NORM_POLYGON,4,targetConn+20); targetMesh->finishInsertingCells(); DataArrayDouble *myCoords=DataArrayDouble::New(); @@ -935,7 +935,7 @@ MEDCouplingUMesh *MEDLoaderTest::build3DMesh_1() MEDCouplingUMesh *MEDLoaderTest::build3DMesh_2() { MEDCouplingUMesh *m3dsurfBase=build3DSurfMesh_1(); - int numbers[5]={0,1,3,4,5}; + int numbers[5]={0,1,2,3,5}; MEDCouplingUMesh *m3dsurf=(MEDCouplingUMesh *)m3dsurfBase->buildPartOfMySelf(numbers,numbers+5,false); m3dsurfBase->decrRef(); MEDCouplingUMesh *m1dBase=build1DMesh_1(); @@ -1021,12 +1021,14 @@ MEDCouplingFieldDouble *MEDLoaderTest::buildVecFieldOnGauss_1() f->setGaussLocalizationOnType(INTERP_KERNEL::NORM_TRI3,_refCoo1,_gsCoo1,_wg1); const double refCoo2[12]={-1.0,1.0, -1.0,-1.0, 1.0,-1.0, -1.0,0.0, 0.0,-1.0, 0.0,0.0 }; std::vector _refCoo2(refCoo2,refCoo2+12); - _gsCoo1.resize(6); _wg1.resize(3); - f->setGaussLocalizationOnType(INTERP_KERNEL::NORM_TRI6,_refCoo2,_gsCoo1,_wg1); + std::vector _gsCoo2(_gsCoo1); + std::vector _wg2(_wg1); + _gsCoo2.resize(6); _wg2.resize(3); const double refCoo3[8]={ 0.,0., 1.,0., 1.,1., 0.,1. }; std::vector _refCoo3(refCoo3,refCoo3+8); _gsCoo1.resize(4); _wg1.resize(2); f->setGaussLocalizationOnType(INTERP_KERNEL::NORM_QUAD4,_refCoo3,_gsCoo1,_wg1); + f->setGaussLocalizationOnType(INTERP_KERNEL::NORM_TRI6,_refCoo2,_gsCoo2,_wg2); DataArrayDouble *array=DataArrayDouble::New(); array->alloc(19,2); double *ptr=array->getPointer();