+ const SMESHDS_Hypothesis* aHyp = *h;
+ std::string hypName = aHyp->GetName();
+
+ if ( std::find( _compatibleHypothesis.begin(), _compatibleHypothesis.end(),
+ hypName ) != _compatibleHypothesis.end() )
+ {
+ if ( hypName == StdMeshers_ViscousLayers::GetHypType() )
+ _viscousLayersHyp = dynamic_cast<const StdMeshers_ViscousLayers*>( aHyp );
+ else
+ _hypothesis = aHyp;
+ aStatus = SMESH_Hypothesis::HYP_OK;
+ }
+ else
+ {
+ aStatus = SMESH_Hypothesis::HYP_INCOMPATIBLE;
+ break;
+ }