Salome HOME
22483: EDF 2772 SMESH: Define several 3D viscous layer hypotheses on the same Geometry
authoreap <eap@opencascade.com>
Fri, 22 Aug 2014 11:40:20 +0000 (15:40 +0400)
committereap <eap@opencascade.com>
Fri, 22 Aug 2014 11:40:20 +0000 (15:40 +0400)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index 4989987e82e905802212c3f29d5ae95a578725b1..3487b7ccc78b2d478bbe5847fd89aa8d615a9a34 100644 (file)
@@ -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
     {