From 39862c8565cebccd21982035629ea5327098b36a Mon Sep 17 00:00:00 2001 From: eap Date: Sat, 27 Nov 2021 14:10:08 +0300 Subject: [PATCH] bos #26523 EDF 24234 - Viscous Layer --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 2 +- src/BLSURFPlugin/BLSURFPlugin_EnforcedMesh1D.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.2