Salome HOME
#16522 [CEA 7599] Viscous layers hypothesis: extract layers as a group V9_5_0a1
authoreap <eap@opencascade.com>
Fri, 7 Feb 2020 13:53:12 +0000 (16:53 +0300)
committereap <eap@opencascade.com>
Fri, 14 Feb 2020 15:17:38 +0000 (18:17 +0300)
Fix SIGSEGV

src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index 75f3758d6414e4f2140391febe30e04840b01b4d..3845f537e824fb7eea632358e7d58db01f8d09d0 100644 (file)
@@ -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. );