From f9e1c3b725c8613a9e1ac63575cee56a227fad51 Mon Sep 17 00:00:00 2001 From: Viktor UZLOV Date: Thu, 25 Feb 2021 14:56:46 +0300 Subject: [PATCH] fix for 64bit mode --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 2 +- src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx | 8 ++++---- src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx | 12 ++++++------ .../NETGENPlugin_SimpleHypothesis_2D.cxx | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index a780b01..3c3cc33 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -3184,7 +3184,7 @@ bool NETGENPlugin_Mesher::Compute() FillSMesh( occgeo, *_ngMesh, initState, *_mesh, nodeVec, comment, &quadHelper ); // compute prismatic boundary volumes - int nbQuad = _mesh->NbQuadrangles(); + smIdType nbQuad = _mesh->NbQuadrangles(); SMESH_ProxyMesh::Ptr viscousMesh; if ( _viscousLayersHyp ) { diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx index 99d1a98..ff36b64 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx @@ -646,7 +646,7 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Evaluate(SMESH_Mesh& aMesh, return false; // collect info from edges - int nb0d = 0, nb1d = 0; + smIdType nb0d = 0, nb1d = 0; bool IsQuadratic = false; bool IsFirst = true; double fullLen = 0.0; @@ -698,10 +698,10 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Evaluate(SMESH_Mesh& aMesh, smError.reset( new SMESH_ComputeError(COMPERR_ALGO_FAILED,"Submesh can not be evaluated.\nToo small element length",this)); return false; } - int nbFaces = (int) ( anArea / ( ELen*ELen*sqrt(3.) / 4 ) ); - int nbNodes = (int) ( ( nbFaces*3 - (nb1d-1)*2 ) / 6 + 1 ); + smIdType nbFaces = (smIdType) ( anArea / ( ELen*ELen*sqrt(3.) / 4 ) ); + smIdType nbNodes = (smIdType) ( ( nbFaces*3 - (nb1d-1)*2 ) / 6 + 1 ); std::vector aVec(SMDSEntity_Last); - for(int i=SMDSEntity_Node; i aVec(SMDSEntity_Last); - for(int i=SMDSEntity_Node; iGetSubMeshContaining( exp.Current() ); -- 2.39.2