From: eap Date: Sat, 27 Nov 2021 11:10:08 +0000 (+0300) Subject: bos #26523 EDF 24234 - Viscous Layer X-Git-Tag: V9_8_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bee7bd0b8c97e342d717f1fb07891905619cb64f;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;