Salome HOME
Trying to compile with option -DMEDCOUPLING_USE_64BIT_IDS=ON on medCoupling-master dev
authormichael <michael@localhost.localdomain>
Sat, 10 Oct 2020 22:47:26 +0000 (00:47 +0200)
committermichael <michael@localhost.localdomain>
Sat, 10 Oct 2020 22:47:26 +0000 (00:47 +0200)
CDMATH/IJKmesh/inc/IJKMesh.hxx
CDMATH/mesh/inc/Mesh.hxx
CDMATH/mesh/src/Field.cxx
CDMATH/mesh/src/Mesh.cxx

index e997137d1486189318e02958dae8430a0903b3eb..1f7c6126a2eedf47db0fcfccd49b2bd6b41206ea 100644 (file)
@@ -35,7 +35,7 @@ namespace MEDCoupling
 class MEDFileCMesh;
 class MEDCouplingMesh;
 class MEDCouplingIMesh;
-class DataArrayInt32;
+class DataArrayInt64;
 }
 namespace ParaMEDMEM
 {
@@ -356,7 +356,7 @@ private: //----------------------------------------------------------------
        /*
         * The list of node groups.
         */
-       std::vector<MEDCoupling::DataArrayInt32 *> _nodeGroups;
+       std::vector<MEDCoupling::DataArrayInt64 *> _nodeGroups;
        /*
         * The mesh MEDCouplingIMesh
         */
index a3f8a285d66d79c96ce1d98ffd27364f9fcd12c3..4c524ef98de490415c97ffb86fbf783825f5c2dd 100644 (file)
@@ -25,7 +25,7 @@ class MEDFileUMesh;
 class MEDCouplingMesh;
 class MEDCouplingIMesh;
 class MEDCouplingUMesh;
-class DataArrayInt32;
+class DataArrayInt64;
 }
 namespace ParaMEDMEM
 {
@@ -237,7 +237,11 @@ public: //----------------------------------------------------------------
 
        std::vector<double> getDXYZ() const ;// for structured meshes
 
+#ifdef MEDCoupling_VERSION_VERSION_GREATER_9_4
+       std::vector<long int> getCellGridStructure() const;// for structured meshes
+#else
        std::vector<int> getCellGridStructure() const;// for structured meshes
+#endif
 
        /**
         * \brief surcharge operator =
@@ -278,7 +282,7 @@ public: //----------------------------------------------------------------
         * \brief return the list of node groups
         * @return _nodeGroups
         */
-       std::vector<MEDCoupling::DataArrayInt32 *> getNodeGroups( void )  const ;
+       std::vector<MEDCoupling::DataArrayInt64 *> getNodeGroups( void )  const ;
 
     /*
      * Functions to extract boundary nodes and faces Ids
@@ -387,7 +391,11 @@ private: //----------------------------------------------------------------
 
        double _zMax;
 
+#ifdef MEDCoupling_VERSION_VERSION_GREATER_9_4
+       std::vector<long int> _nxyz;
+#else
        std::vector<int> _nxyz;
+#endif
 
        std::vector<double> _dxyz;
        /*
@@ -442,7 +450,7 @@ private: //----------------------------------------------------------------
        /*
         * The list of node groups.
         */
-       std::vector<MEDCoupling::DataArrayInt32 *> _nodeGroups;
+       std::vector<MEDCoupling::DataArrayInt64 *> _nodeGroups;
        /*
         * The mesh MEDCoupling
         */
index 699285d0faab1fbb84ec51cbeb450ce5df66272e..df1fe99ddbbce3c19baac83cce77cb844f3b1731 100755 (executable)
@@ -68,10 +68,10 @@ void Field::buildFieldMemoryStructure()
        {
                _field=MEDCouplingFieldDouble::New(ON_CELLS);
                array->alloc(_mesh.getNumberOfFaces(),_numberOfComponents);
-               DataArrayInt *desc=DataArrayInt::New();
-               DataArrayInt *descI=DataArrayInt::New();
-               DataArrayInt *revDesc=DataArrayInt::New();
-               DataArrayInt *revDescI=DataArrayInt::New();
+               DataArrayInt64 *desc=DataArrayInt64::New();
+               DataArrayInt64 *descI=DataArrayInt64::New();
+               DataArrayInt64 *revDesc=DataArrayInt64::New();
+               DataArrayInt64 *revDescI=DataArrayInt64::New();
                MEDCouplingUMesh *m3=mu->buildDescendingConnectivity(desc,descI,revDesc,revDescI);
                _field->setMesh(m3);
                desc->decrRef();
index fce9fbf25ddf7d9de11671f66a5d7f04ed54962f..817d5bbd900231732424cad86b1bcd0c6ad93bbc 100644 (file)
@@ -104,7 +104,7 @@ Mesh::Mesh( const MEDCoupling::MEDCouplingIMesh* mesh )
 
        double *originPtr = new double[_spaceDim];
        double *dxyzPtr = new double[_spaceDim];
-       int *nodeStrctPtr = new int[_spaceDim];
+       mcIdType *nodeStrctPtr = new mcIdType[_spaceDim];
 
        for(int i=0;i<_spaceDim;i++)
        {
@@ -552,10 +552,10 @@ Mesh::setGroups( const MEDFileUMesh* medmesh, MEDCouplingUMesh*  mu)
        for (unsigned int i=0;i<faceGroups.size();i++ )
        {
                string groupName=faceGroups[i];
-               vector<int> nonEmptyGrp(medmesh->getGrpNonEmptyLevels(groupName));
+               vector<long int> nonEmptyGrp(medmesh->getGrpNonEmptyLevels(groupName));
                //We check if the group has a relative dimension equal to -1 
                //before call to the function getGroup(-1,groupName.c_str())
-               vector<int>::iterator it = find(nonEmptyGrp.begin(), nonEmptyGrp.end(), -1);
+               vector<long int>::iterator it = find(nonEmptyGrp.begin(), nonEmptyGrp.end(), -1);
                if (it != nonEmptyGrp.end())
                {
                        cout<<"Boundary face group named "<< groupName << " found"<<endl;
@@ -614,8 +614,8 @@ Mesh::setGroups( const MEDFileUMesh* medmesh, MEDCouplingUMesh*  mu)
        for (unsigned int i=0;i<nodeGroups.size();i++ )
        {
                string groupName=nodeGroups[i];
-               DataArrayInt * nodeGroup=medmesh->getNodeGroupArr( groupName );
-               const int *nodeids=nodeGroup->getConstPointer();
+               DataArrayInt64 * nodeGroup=medmesh->getNodeGroupArr( groupName );
+               const mcIdType *nodeids=nodeGroup->getConstPointer();
 
                if(nodeids!=NULL)
                {
@@ -659,10 +659,10 @@ MEDCouplingUMesh*
 Mesh::setMesh( void )
 //----------------------------------------------------------------------
 {
-       DataArrayInt *desc  = DataArrayInt::New();
-       DataArrayInt *descI = DataArrayInt::New();
-       DataArrayInt *revDesc  = DataArrayInt::New();
-       DataArrayInt *revDescI = DataArrayInt::New();
+       DataArrayInt64 *desc  = DataArrayInt64::New();
+       DataArrayInt64 *descI = DataArrayInt64::New();
+       DataArrayInt64 *revDesc  = DataArrayInt64::New();
+       DataArrayInt64 *revDescI = DataArrayInt64::New();
        MEDCouplingUMesh* mu = _mesh->buildUnstructured();
 
        mu->unPolyze();
@@ -671,11 +671,11 @@ Mesh::setMesh( void )
        
        MEDCouplingUMesh* mu2=mu->buildDescendingConnectivity2(desc,descI,revDesc,revDescI);//mesh of dimension N-1 containing the cell interfaces
     
-    const int *tmp = desc->getConstPointer();
-    const int *tmpI=descI->getConstPointer();
+    const long int *tmp = desc->getConstPointer();
+    const long int *tmpI=descI->getConstPointer();
 
-       const int *tmpA =revDesc->getConstPointer();
-       const int *tmpAI=revDescI->getConstPointer();
+       const long int *tmpA =revDesc->getConstPointer();
+       const long int *tmpAI=revDescI->getConstPointer();
 
     //const int *work=tmp+tmpI[id];//corresponds to buildDescendingConnectivity
 
@@ -707,22 +707,22 @@ Mesh::setMesh( void )
        DataArrayDouble *coo = mu->getCoords() ;
        const double    *cood=coo->getConstPointer();
 
-       DataArrayInt *revNode =DataArrayInt::New();
-       DataArrayInt *revNodeI=DataArrayInt::New();
+       DataArrayInt64 *revNode =DataArrayInt64::New();
+       DataArrayInt64 *revNodeI=DataArrayInt64::New();
        mu->getReverseNodalConnectivity(revNode,revNodeI) ;
-       const int *tmpN =revNode->getConstPointer();
-       const int *tmpNI=revNodeI->getConstPointer();
+       const long int *tmpN =revNode->getConstPointer();
+       const long int *tmpNI=revNodeI->getConstPointer();
 
-       DataArrayInt *revCell =DataArrayInt::New();
-       DataArrayInt *revCellI=DataArrayInt::New();
+       DataArrayInt64 *revCell =DataArrayInt64::New();
+       DataArrayInt64 *revCellI=DataArrayInt64::New();
        mu2->getReverseNodalConnectivity(revCell,revCellI) ;
-       const int *tmpC =revCell->getConstPointer();
-       const int *tmpCI=revCellI->getConstPointer();
+       const long int *tmpC =revCell->getConstPointer();
+       const long int *tmpCI=revCellI->getConstPointer();
 
-       const DataArrayInt *nodal  = mu2->getNodalConnectivity() ;
-       const DataArrayInt *nodalI = mu2->getNodalConnectivityIndex() ;
-       const int *tmpNE =nodal->getConstPointer();
-       const int *tmpNEI=nodalI->getConstPointer();
+       const DataArrayInt64 *nodal  = mu2->getNodalConnectivity() ;
+       const DataArrayInt64 *nodalI = mu2->getNodalConnectivityIndex() ;
+       const long int *tmpNE =nodal->getConstPointer();
+       const long int *tmpNEI=nodalI->getConstPointer();
 
        _numberOfCells = mu->getNumberOfCells() ;
        _cells      = new Cell[_numberOfCells] ;
@@ -736,14 +736,14 @@ Mesh::setMesh( void )
     _indexFacePeriodicSet=false;
 
     //Definition used if _meshDim =3 to determine the edges
-    DataArrayInt *desc2 =DataArrayInt::New();
-    DataArrayInt *descI2=DataArrayInt::New();
-    DataArrayInt *revDesc2 =DataArrayInt::New();
-    DataArrayInt *revDescI2=DataArrayInt::New();
-    DataArrayInt *revNode2 =DataArrayInt::New();
-    DataArrayInt *revNodeI2=DataArrayInt::New();
-    const int *tmpN2 ;
-    const int *tmpNI2;
+    DataArrayInt64 *desc2 =DataArrayInt64::New();
+    DataArrayInt64 *descI2=DataArrayInt64::New();
+    DataArrayInt64 *revDesc2 =DataArrayInt64::New();
+    DataArrayInt64 *revDescI2=DataArrayInt64::New();
+    DataArrayInt64 *revNode2 =DataArrayInt64::New();
+    DataArrayInt64 *revNodeI2=DataArrayInt64::New();
+    const long int *tmpN2 ;
+    const long int *tmpNI2;
     MEDCouplingUMesh* mu3;
     
        if (_meshDim == 1)
@@ -764,14 +764,14 @@ Mesh::setMesh( void )
        {
                for( int id=0;id<_numberOfCells;id++ )
                {
-                       const int *work=tmp+tmpI[id];
+                       const long int *work=tmp+tmpI[id];
             int nbFaces=tmpI[id+1]-tmpI[id];
                        
                        int nbVertices=mu->getNumberOfNodesInCell(id) ;
             
                        Cell ci( nbVertices, nbFaces, surf[id], Point(coorBary[id], 0.0, 0.0) ) ;
 
-                       std::vector<int> nodeIdsOfCell ;
+                       std::vector<long int> nodeIdsOfCell ;
                        mu->getNodeIdsOfCell(id,nodeIdsOfCell) ;
                        for( int el=0;el<nbVertices;el++ )
             {
@@ -796,12 +796,12 @@ Mesh::setMesh( void )
                for( int id(0), k(0); id<_numberOfNodes; id++, k+=_spaceDim)
                {
                        Point p(cood[k], 0.0, 0.0) ;
-                       const int *workc=tmpN+tmpNI[id];
+                       const long int *workc=tmpN+tmpNI[id];
                        int nbCells=tmpNI[id+1]-tmpNI[id];
 
-                       const int *workf=tmpC+tmpCI[id];
+                       const long int *workf=tmpC+tmpCI[id];
                        int nbFaces=tmpCI[id+1]-tmpCI[id];
-            const int *workn=tmpA+tmpAI[id];
+            const long int *workn=tmpA+tmpAI[id];
             int nbNeighbourNodes=tmpAI[id+1]-tmpAI[id];
                        Node vi( nbCells, nbFaces, nbNeighbourNodes, p ) ;
 
@@ -819,10 +819,10 @@ Mesh::setMesh( void )
                for(int id(0), k(0); id<_numberOfFaces; id++, k+=_spaceDim)
                {
                        Point p(cood[k], 0.0, 0.0) ;
-                       const int *workc=tmpA+tmpAI[id];
+                       const long int *workc=tmpA+tmpAI[id];
                        int nbCells=tmpAI[id+1]-tmpAI[id];
 
-                       const int *workv=tmpNE+tmpNEI[id]+1;
+                       const long int *workv=tmpNE+tmpNEI[id]+1;
                        Face fi( 1, nbCells, 1.0, p, 1.0, 0.0, 0.0) ;
                        fi.addNodeId(0,workv[0]) ;
 
@@ -854,7 +854,7 @@ Mesh::setMesh( void )
                /*Building mesh cells */
                for(int id(0), k(0); id<_numberOfCells; id++, k+=_spaceDim)
                {
-            const int *work=tmp+tmpI[id];      
+            const long int *work=tmp+tmpI[id];      
                        int nbFaces=tmpI[id+1]-tmpI[id];
             
                        int nbVertices=mu->getNumberOfNodesInCell(id) ;
@@ -867,7 +867,7 @@ Mesh::setMesh( void )
                        Cell ci( nbVertices, nbFaces, surf[id], p ) ;
 
                        /* Filling cell nodes */
-                       std::vector<int> nodeIdsOfCell ;
+                       std::vector<long int> nodeIdsOfCell ;
                        mu->getNodeIdsOfCell(id,nodeIdsOfCell) ;
                        for( int el=0;el<nbVertices;el++ )
                                ci.addNodeId(el,nodeIdsOfCell[el]) ;
@@ -912,7 +912,7 @@ Mesh::setMesh( void )
                                        for( int el=0;el<nbFaces;el++ )
                                        {
                         int faceIndex=(abs(work[el])-1);//=work[el] since Fortran type numbering was used, and negative sign means anticlockwise numbering
-                                               const int *workv=tmpNE+tmpNEI[faceIndex]+1;
+                                               const long int *workv=tmpNE+tmpNEI[faceIndex]+1;
                                                int nbNodes= tmpNEI[faceIndex+1]-tmpNEI[faceIndex]-1;
                                                if(nbNodes!=2)//We want to compute the normal to a straight line, not a curved interface composed of more thant 2 points
                                                {
@@ -971,7 +971,7 @@ Mesh::setMesh( void )
                        for (int d=0; d<_spaceDim; d++)
                                coorBarySegXyz[d] = coorBarySeg[k+d];
                        Point p(coorBarySegXyz[0],coorBarySegXyz[1],coorBarySegXyz[2]) ;
-                       const int *workc=tmpA+tmpAI[id];
+                       const long int *workc=tmpA+tmpAI[id];
                        int nbCells=tmpAI[id+1]-tmpAI[id];
             
             if (nbCells>2 && _spaceDim==_meshDim)
@@ -986,7 +986,7 @@ Mesh::setMesh( void )
             if (nbCells==1)
                 _boundaryFaceIds.push_back(id);
                 
-                       const int *workv=tmpNE+tmpNEI[id]+1;
+                       const long int *workv=tmpNE+tmpNEI[id]+1;
                        int nbNodes= tmpNEI[id+1]-tmpNEI[id]-1;
 
                        Face fi;
@@ -1023,11 +1023,11 @@ Mesh::setMesh( void )
                                coorP[d] = cood[k+d];
                        Point p(coorP[0],coorP[1],coorP[2]) ;
 
-                       const int *workc=tmpN+tmpNI[id];
+                       const long int *workc=tmpN+tmpNI[id];
                        int nbCells=tmpNI[id+1]-tmpNI[id];
-                       const int *workf=tmpC+tmpCI[id];
+                       const long int *workf=tmpC+tmpCI[id];
                        int nbFaces=tmpCI[id+1]-tmpCI[id];
-                       const int *workn;
+                       const long int *workn;
                        int nbNeighbourNodes;
             if (_meshDim == 1)
             {
@@ -1151,7 +1151,7 @@ Mesh::Mesh( double xmin, double xmax, int nx, std::string meshName )
 
        double *originPtr = new double[_spaceDim];
        double *dxyzPtr = new double[_spaceDim];
-       int *nodeStrctPtr = new int[_spaceDim];
+       mcIdType *nodeStrctPtr = new mcIdType[_spaceDim];
 
        originPtr[0]=xmin;
        nodeStrctPtr[0]=nx+1;
@@ -1169,18 +1169,18 @@ Mesh::Mesh( double xmin, double xmax, int nx, std::string meshName )
        delete [] dxyzPtr;
        delete [] nodeStrctPtr;
 
-       DataArrayInt *desc=DataArrayInt::New();
-       DataArrayInt *descI=DataArrayInt::New();
-       DataArrayInt *revDesc=DataArrayInt::New();
-       DataArrayInt *revDescI=DataArrayInt::New();
+       DataArrayInt64 *desc=DataArrayInt64::New();
+       DataArrayInt64 *descI=DataArrayInt64::New();
+       DataArrayInt64 *revDesc=DataArrayInt64::New();
+       DataArrayInt64 *revDescI=DataArrayInt64::New();
        MEDCouplingUMesh* mu=_mesh->buildUnstructured();
        MEDCouplingUMesh *mu2=mu->buildDescendingConnectivity(desc,descI,revDesc,revDescI);
 
-       const int *tmp=desc->getConstPointer();
-       const int *tmpI=descI->getConstPointer();
+       const long int *tmp=desc->getConstPointer();
+       const long int *tmpI=descI->getConstPointer();
 
-       const int *tmpA =revDesc->getConstPointer();
-       const int *tmpAI=revDescI->getConstPointer();
+       const long int *tmpA =revDesc->getConstPointer();
+       const long int *tmpAI=revDescI->getConstPointer();
 
        _eltsTypes=mu->getAllGeoTypesSorted();
 
@@ -1212,7 +1212,7 @@ Mesh::Mesh( double xmin, double xmax, int nx, std::string meshName )
                Point p(coorBary[id],0.0,0.0) ;
                Cell ci( nbVertices, nbVertices, lon[id], p ) ;
 
-               std::vector<int> nodeIdsOfCell ;
+               std::vector<long int> nodeIdsOfCell ;
                mu->getNodeIdsOfCell(id,nodeIdsOfCell) ;
                for( int el=0;el<nbVertices;el++ )
                {
@@ -1223,7 +1223,7 @@ Mesh::Mesh( double xmin, double xmax, int nx, std::string meshName )
         double xn = (cood[nodeIdsOfCell[nbVertices-1]] - cood[nodeIdsOfCell[0]] > 0.0) ? -1.0 : 1.0;
 
         int nbFaces=tmpI[id+1]-tmpI[id];
-        const int *work=tmp+tmpI[id];
+        const long int *work=tmp+tmpI[id];
                
         for( int el=0;el<nbFaces;el++ )
                {
@@ -1238,21 +1238,21 @@ Mesh::Mesh( double xmin, double xmax, int nx, std::string meshName )
        }
 
     //Suppress the following since tmpN=tmpA
-       DataArrayInt *revNode=DataArrayInt::New();
-       DataArrayInt *revNodeI=DataArrayInt::New();
+       DataArrayInt64 *revNode=DataArrayInt64::New();
+       DataArrayInt64 *revNodeI=DataArrayInt64::New();
        mu->getReverseNodalConnectivity(revNode,revNodeI) ;
-       const int *tmpN=revNode->getConstPointer();
-       const int *tmpNI=revNodeI->getConstPointer();
+       const long int *tmpN=revNode->getConstPointer();
+       const long int *tmpNI=revNodeI->getConstPointer();
 
        for( int id=0;id<_numberOfNodes;id++ )
        {
                std::vector<double> coo ;
                mu->getCoordinatesOfNode(id,coo);
                Point p(coo[0],0.0,0.0) ;
-               const int *workc=tmpN+tmpNI[id];
+               const long int *workc=tmpN+tmpNI[id];
                int nbCells=tmpNI[id+1]-tmpNI[id];
                int nbFaces=1;
-        const int *workn=tmpA+tmpAI[id];
+        const long int *workn=tmpA+tmpAI[id];
         int nbNeighbourNodes=tmpAI[id+1]-tmpAI[id];
         
                Node vi( nbCells, nbFaces, nbNeighbourNodes, p ) ;
@@ -1328,7 +1328,7 @@ Mesh::Mesh( std::vector<double> points, std::string meshName )
     MEDCouplingUMesh * mesh1d = MEDCouplingUMesh::New(meshName, 1);
     mesh1d->allocateCells(nx - 1);
     double * coords = new double[nx];
-    int * nodal_con = new int[2];
+    long int * nodal_con = new long int[2];
     coords[0]=points[0];
     for(int i=0; i<nx- 1 ; i++)
     {
@@ -1349,10 +1349,10 @@ Mesh::Mesh( std::vector<double> points, std::string meshName )
 
     _mesh=mesh1d;
     
-       DataArrayInt *desc=DataArrayInt::New();
-       DataArrayInt *descI=DataArrayInt::New();
-       DataArrayInt *revDesc=DataArrayInt::New();
-       DataArrayInt *revDescI=DataArrayInt::New();
+       DataArrayInt64 *desc=DataArrayInt64::New();
+       DataArrayInt64 *descI=DataArrayInt64::New();
+       DataArrayInt64 *revDesc=DataArrayInt64::New();
+       DataArrayInt64 *revDescI=DataArrayInt64::New();
     MEDCouplingUMesh* mu=_mesh->buildUnstructured();
        MEDCouplingUMesh *mu2=mu->buildDescendingConnectivity(desc,descI,revDesc,revDescI);
 
@@ -1377,7 +1377,7 @@ Mesh::Mesh( std::vector<double> points, std::string meshName )
                Point p(coorBary[id],0.0,0.0) ;
                Cell ci( nbVertices, nbVertices, lon[id], p ) ;
 
-               std::vector<int> nodeIdsOfCell ;
+               std::vector<long int> nodeIdsOfCell ;
                mu->getNodeIdsOfCell(id,nodeIdsOfCell) ;
                for( int el=0;el<nbVertices;el++ )
                {
@@ -1390,11 +1390,11 @@ Mesh::Mesh( std::vector<double> points, std::string meshName )
 
 
     //Suppress the following since tmpN=tmpA
-       DataArrayInt *revNode=DataArrayInt::New();
-       DataArrayInt *revNodeI=DataArrayInt::New();
+       DataArrayInt64 *revNode=DataArrayInt64::New();
+       DataArrayInt64 *revNodeI=DataArrayInt64::New();
        mu->getReverseNodalConnectivity(revNode,revNodeI) ;
-       const int *tmpN=revNode->getConstPointer();
-       const int *tmpNI=revNodeI->getConstPointer();
+       const long int *tmpN=revNode->getConstPointer();
+       const long int *tmpNI=revNodeI->getConstPointer();
 
        _numberOfNodes = mu->getNumberOfNodes() ;
        _nodes    = new Node[_numberOfNodes] ;
@@ -1406,10 +1406,10 @@ Mesh::Mesh( std::vector<double> points, std::string meshName )
                std::vector<double> coo ;
                mu->getCoordinatesOfNode(id,coo);
                Point p(coo[0],0.0,0.0) ;
-               const int *workc=tmpN+tmpNI[id];
+               const long int *workc=tmpN+tmpNI[id];
                int nbCells=tmpNI[id+1]-tmpNI[id];
                int nbFaces=1;
-        const int *workn=tmpN+tmpNI[id];
+        const long int *workn=tmpN+tmpNI[id];
         int nbNeighbourNodes=tmpNI[id+1]-tmpNI[id];
                Node vi( nbCells, nbFaces, nbNeighbourNodes, p ) ;
                int nbVertices=1;
@@ -1488,7 +1488,7 @@ Mesh::Mesh( double xmin, double xmax, int nx, double ymin, double ymax, int ny,
 
        double *originPtr = new double[_spaceDim];
        double *dxyzPtr   = new double[_spaceDim];
-       int *nodeStrctPtr = new int[_spaceDim];
+       mcIdType *nodeStrctPtr = new mcIdType[_spaceDim];
 
        originPtr[0]=xmin;
        originPtr[1]=ymin;
@@ -1565,7 +1565,7 @@ Mesh::Mesh( double xmin, double xmax, int nx, double ymin, double ymax, int ny,
 
        double *originPtr = new double[_spaceDim];
        double *dxyzPtr = new double[_spaceDim];
-       int *nodeStrctPtr = new int[_spaceDim];
+       mcIdType *nodeStrctPtr = new mcIdType[_spaceDim];
 
        originPtr[0]=xmin;
        originPtr[1]=ymin;
@@ -1634,7 +1634,7 @@ Mesh::getDXYZ() const
        return _dxyz;
 }
 
-std::vector<int>
+std::vector<long int>
 Mesh::getCellGridStructure() const
 {
     if(!_isStructured)
@@ -1834,7 +1834,7 @@ Mesh::getNameOfNodeGroups( void )  const
        return _nodeGroupNames;
 }
 
-vector<MEDCoupling::DataArrayInt *>
+vector<MEDCoupling::DataArrayInt64 *>
 Mesh::getNodeGroups( void )  const
 {
        return _nodeGroups;