From: eap Date: Fri, 7 Feb 2020 13:53:12 +0000 (+0300) Subject: #16522 [CEA 7599] Viscous layers hypothesis: extract layers as a group X-Git-Tag: V9_5_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f649b5af180f9a3f8175a8f1542aaa931f69309f;p=plugins%2Fnetgenplugin.git #16522 [CEA 7599] Viscous layers hypothesis: extract layers as a group Fix SIGSEGV --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 75f3758..3845f53 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -3173,6 +3173,7 @@ bool NETGENPlugin_Mesher::Compute() const NETGENPlugin_SimpleHypothesis_3D* simple3d = dynamic_cast< const NETGENPlugin_SimpleHypothesis_3D* > ( _simpleHyp ); if ( simple3d ) { + _ngMesh->Compress(); if ( double vol = simple3d->GetMaxElementVolume() ) { // max volume mparams.maxh = pow( 72, 1/6. ) * pow( vol, 1/3. );