]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
bos #26523 EDF 24234 - Viscous Layer
authoreap <eap@opencascade.com>
Sat, 27 Nov 2021 11:10:08 +0000 (14:10 +0300)
committereap <eap@opencascade.com>
Sat, 27 Nov 2021 11:10:08 +0000 (14:10 +0300)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx
src/BLSURFPlugin/BLSURFPlugin_EnforcedMesh1D.cxx

index ccca2fa2af0bf0dbbd678fae354aff91bdadcdee..abb3dfb8d4897f689c9e160faee62a5229b8dab4 100644 (file)
@@ -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() ));
index 147a7df1b5637ffcc7b4a4529102fd22851de01e..45a302b4a1161eec26d1f10cc138777727eccdf6 100644 (file)
@@ -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;