From: Anthony Geay Date: Thu, 28 Apr 2016 10:03:13 +0000 (+0200) Subject: INT 64bits porting for MEDWriter. Please do not beat me if it is not OK because I... X-Git-Tag: V7_8_0a2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=50474c5d65eed235bcf00d297225d2fec7de747b;p=modules%2Fparavis.git INT 64bits porting for MEDWriter. Please do not beat me if it is not OK because I cant test it. Sorry. --- diff --git a/src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx b/src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx index 96bd5c5e..d2a2bf45 100644 --- a/src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx +++ b/src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx @@ -218,7 +218,10 @@ MEDCouplingUMesh *BuildMeshFromCellArray(vtkCellArray *ca, DataArrayDouble *coor for(int i=0;iinsertNextCell(type,sz,conn); + std::vector conn2(sz); + for(int jj=0;jjinsertNextCell(type,sz,&conn2[0]); conn+=sz; } return subMesh.retn(); @@ -242,7 +245,8 @@ MEDCouplingUMesh *BuildMeshFromCellArrayTriangleStrip(vtkCellArray *ca, DataArra { for(int j=0;jinsertNextCell(INTERP_KERNEL::NORM_TRI3,3,conn); + int conn2[3]; conn2[0]=conn[0] ; conn2[1]=conn[1] ; conn2[2]=conn[2]; + subMesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,3,conn2); ids->pushBackSilent(i); } } @@ -711,7 +715,12 @@ void ConvertFromUnstructuredGrid(MEDFileData *ret, vtkUnstructuredGrid *ds, cons vtkIdType sz(caPtr[offset]); INTERP_KERNEL::NormalizedCellType ct((INTERP_KERNEL::NormalizedCellType)(*it).second); if(ct!=INTERP_KERNEL::NORM_POLYHED) - m0->insertNextCell(ct,sz,caPtr+offset+1); + { + std::vector conn2(sz); + for(int kk=0;kkinsertNextCell(ct,sz,&conn2[0]); + } else { if(!faces || !faceLoc)