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:41:12 +0000 (15:41 +0400)
committereap <eap@opencascade.com>
Fri, 22 Aug 2014 11:41:12 +0000 (15:41 +0400)
src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx

index bfec44fbabd8f091cc386407e679c67d6f518399..03a1b08fd5e6116731469c74e924acfc008c2805 100644 (file)
@@ -187,7 +187,10 @@ bool GHS3DPlugin_GHS3D::CheckHypothesis ( SMESH_Mesh&         aMesh,
     _logInStandardOutput = _hyp->GetStandardOutputLog();
   }
 
-  return true;
+  if ( _viscousLayersHyp )
+    error( _viscousLayersHyp->CheckHypothesis( aMesh, aShape, aStatus ));
+
+  return aStatus == HYP_OK;
 }