From: eap Date: Wed, 17 Mar 2021 15:02:28 +0000 (+0300) Subject: bos #20256: [CEA 18523] Porting SMESH to int 64 bits X-Git-Tag: V9_7_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5067112430e3066cb4cfb25778dfb459bf6656f;p=plugins%2Fhexoticplugin.git bos #20256: [CEA 18523] Porting SMESH to int 64 bits --- diff --git a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx index 8067477..37bd685 100644 --- a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx +++ b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx @@ -351,7 +351,8 @@ static void writeInput(MG_Hexotic_API* theHexaInput, int meshID = theHexaInput->GmfOpenMesh( theFile, GmfWrite, GMFVERSION, GMFDIMENSION); // nodes - int iN = 0, nbNodes = theMeshDS->NbNodes(); + int iN = 0; + smIdType nbNodes = theMeshDS->NbNodes(); theHexaInput->GmfSetKwd( meshID, GmfVertices, nbNodes ); std::map< const SMDS_MeshNode*, int, TIDCompare > node2IdMap; SMDS_NodeIteratorPtr nodeIt = theMeshDS->nodesIterator(); @@ -367,7 +368,7 @@ static void writeInput(MG_Hexotic_API* theHexaInput, SMDS_ElemIteratorPtr elemIt = theMeshDS->elementsIterator( SMDSAbs_Edge ); if ( elemIt->more() ) { - int nbEdges = theMeshDS->GetMeshInfo().NbElements( SMDSAbs_Edge ); + smIdType nbEdges = theMeshDS->GetMeshInfo().NbElements( SMDSAbs_Edge ); theHexaInput->GmfSetKwd(meshID, GmfEdges, nbEdges ); for ( int gmfID = 1; elemIt->more(); ++gmfID ) { @@ -383,7 +384,7 @@ static void writeInput(MG_Hexotic_API* theHexaInput, elemIt = theMeshDS->elementGeomIterator( SMDSGeom_TRIANGLE ); if ( elemIt->more() ) { - int nbTria = theMeshDS->GetMeshInfo().NbElements( SMDSGeom_TRIANGLE ); + smIdType nbTria = theMeshDS->GetMeshInfo().NbElements( SMDSGeom_TRIANGLE ); theHexaInput->GmfSetKwd(meshID, GmfTriangles, nbTria ); for ( int gmfID = 1; elemIt->more(); ++gmfID ) { @@ -1297,8 +1298,8 @@ bool HexoticPlugin_Hexotic::Evaluate(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape, MapShapeNbElems& aResMap) { - std::vector aResVec(SMDSEntity_Last); - for(int i=SMDSEntity_Node; i aResVec(SMDSEntity_Last); + for(smIdType i=SMDSEntity_Node; i