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();
}
else if ( hypName == StdMeshers_ViscousLayers2D::GetHypType() )
{
- _haveViscousLayers = true;
+ if ( !_haveViscousLayers )
+ {
+ if ( error( StdMeshers_ViscousLayers2D::CheckHypothesis( aMesh, aShape, aStatus )))
+ _haveViscousLayers = true;
+ }
}
else
{