From: eap Date: Wed, 26 Feb 2020 17:02:20 +0000 (+0300) Subject: SIGSEGV if viscous layers are on all faces X-Git-Tag: V9_5_0a2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9a8732392a83fa20e6072f015f21b1d11d3acaae;p=plugins%2Fghs3dplugin.git SIGSEGV if viscous layers are on all faces --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index 4004437..ca6c9bb 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -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 ) {