From f649b5af180f9a3f8175a8f1542aaa931f69309f Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 7 Feb 2020 16:53:12 +0300 Subject: [PATCH] #16522 [CEA 7599] Viscous layers hypothesis: extract layers as a group Fix SIGSEGV --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 1 + 1 file changed, 1 insertion(+) 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. ); -- 2.39.2