Salome HOME
SIGSEGV if viscous layers are on all faces
authoreap <eap@opencascade.com>
Wed, 26 Feb 2020 17:02:20 +0000 (20:02 +0300)
committereap <eap@opencascade.com>
Wed, 26 Feb 2020 17:02:20 +0000 (20:02 +0300)
src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx

index 400443722bd4ca0bfb9702e3f69eb8e7a0d6a5c0..ca6c9bbf014c80b0db36b16c1b34fa8178086008 100644 (file)
@@ -1679,6 +1679,8 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh&         theMesh,
         proxyMesh = _viscousLayersHyp->Compute( theMesh, expBox.Current() );
         if ( !proxyMesh )
           return false;
+        if ( theMesh.NbQuadrangles() == 0 )
+          components.push_back( proxyMesh );
       }
       if ( theMesh.NbQuadrangles() > 0 )
       {