From: eap Date: Sat, 27 Nov 2021 11:10:08 +0000 (+0300) Subject: bos #26523 EDF 24234 - Viscous Layer X-Git-Tag: V9_9_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=39862c8565cebccd21982035629ea5327098b36a;p=plugins%2Fblsurfplugin.git bos #26523 EDF 24234 - Viscous Layer --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index ccca2fa..abb3dfb 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -1763,7 +1763,7 @@ namespace TSeg2EdgeMap seg2EdgeMap; TopoDS_Iterator edgeIt( wire ); - for ( int iSeg = 1; edgeIt.More(); edgeIt.Next(), ++iSeg ) + for ( size_t iSeg = 1; edgeIt.More() && iSeg < nodesOfVertices.size(); edgeIt.Next(), ++iSeg ) { SMESH_TLink link( nodesOfVertices[ iSeg-1 ], nodesOfVertices[ iSeg ]); TopoDS_Edge edge( TopoDS::Edge( edgeIt.Value() )); diff --git a/src/BLSURFPlugin/BLSURFPlugin_EnforcedMesh1D.cxx b/src/BLSURFPlugin/BLSURFPlugin_EnforcedMesh1D.cxx index 147a7df..45a302b 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_EnforcedMesh1D.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_EnforcedMesh1D.cxx @@ -145,7 +145,8 @@ BLSURFPlugin_EnforcedMesh1D::BLSURFPlugin_EnforcedMesh1D( SMESH_MesherHelper& : _mesh ( helper.GetMesh() ), _shape( helper.GetSubShape() ), _helper( *_mesh ), - _isQuadratic( helper.GetIsQuadratic() ) + _isQuadratic( helper.GetIsQuadratic() ), + _nodeTag0( 0 ) { if ( !hyp || !_mesh || hyp->GetEnforcedMeshes().empty() ) return;