#16522 [CEA 7599] Viscous layers hypothesis: extract layers as a group

Fix SIGSEGV
This commit is contained in:
eap 2020-02-07 16:53:12 +03:00
parent 7619874170
commit f649b5af18

View File

@ -3173,6 +3173,7 @@ bool NETGENPlugin_Mesher::Compute()
const NETGENPlugin_SimpleHypothesis_3D* simple3d = const NETGENPlugin_SimpleHypothesis_3D* simple3d =
dynamic_cast< const NETGENPlugin_SimpleHypothesis_3D* > ( _simpleHyp ); dynamic_cast< const NETGENPlugin_SimpleHypothesis_3D* > ( _simpleHyp );
if ( simple3d ) { if ( simple3d ) {
_ngMesh->Compress();
if ( double vol = simple3d->GetMaxElementVolume() ) { if ( double vol = simple3d->GetMaxElementVolume() ) {
// max volume // max volume
mparams.maxh = pow( 72, 1/6. ) * pow( vol, 1/3. ); mparams.maxh = pow( 72, 1/6. ) * pow( vol, 1/3. );