From: eap Date: Fri, 22 Aug 2014 11:40:20 +0000 (+0400) Subject: 22483: EDF 2772 SMESH: Define several 3D viscous layer hypotheses on the same Geometry X-Git-Tag: V7_5_0a1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=427668dbb6c7a9acdf6d463b33fe0053d6a6de4f;p=plugins%2Fblsurfplugin.git 22483: EDF 2772 SMESH: Define several 3D viscous layer hypotheses on the same Geometry --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 4989987..3487b7c 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -332,7 +332,7 @@ bool BLSURFPlugin_BLSURF::CheckHypothesis return true; // can work with no hypothesis } - for ( itl = hyps.begin(); itl != hyps.end(); ++itl ) + for ( itl = hyps.begin(); itl != hyps.end() && ( aStatus == HYP_OK ); ++itl ) { theHyp = *itl; string hypName = theHyp->GetName(); @@ -347,7 +347,11 @@ bool BLSURFPlugin_BLSURF::CheckHypothesis } else if ( hypName == StdMeshers_ViscousLayers2D::GetHypType() ) { - _haveViscousLayers = true; + if ( !_haveViscousLayers ) + { + if ( error( StdMeshers_ViscousLayers2D::CheckHypothesis( aMesh, aShape, aStatus ))) + _haveViscousLayers = true; + } } else {