#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 b1dea9656e
commit 115bf1a121

View 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. );