_aFieldName=CBFieldName->currentText();
aHypothesis->SetField(CORBA::string_dup(_aFieldName.toStdString().c_str()) ) ;
- aHypothesis->SetRefinThr( _TypeThR, _ThreshR ) ;
- aHypothesis->SetUnRefThr( _TypeThC, _ThreshC ) ;
+ if ( _TypeThR > 0 ) { aHypothesis->SetRefinThr( _TypeThR, _ThreshR ) ; }
+ if ( _TypeThC > 0 ) { aHypothesis->SetUnRefThr( _TypeThC, _ThreshC ) ; }
aHypothesis->SetUseField( _UsField ) ;
aHypothesis->SetUseComp( _UsCmpI ) ;
_aListeComposant = GetListCompChecked() ;
// H.3 Message d'erreur
if (codretexec != 0)
{
- std::string text ;
+ std::string text = "" ;
// Message d'erreur en cas de probleme en adaptation
if ( modeHOMARD == 1 )
{
}
}
}
- else
- {
- text = "Voir le fichier Liste.log.\n" ;
- }
+ text += "\n\nSee the file " + LogFile + "\n" ;
INFOS ( text ) ;
SALOME::ExceptionStruct es;
es.type = SALOME::BAD_PARAM;
int TypeAdap = (*ListTypes)[0];
int TypeRaff = (*ListTypes)[1];
int TypeDera = (*ListTypes)[2];
+// MESSAGE ( ". TypeAdap = " << TypeAdap << ", TypeRaff = " << TypeRaff << ", TypeDera = " << TypeDera );
// E. Texte du fichier de configuration
// E.1. Incontournables du texte
// que c'est bien un probleme d'absence
#ifndef WIN32
if ( chdir(DirNameA.str().c_str()) != 0 )
- {
#else
if ( _chdir(DirNameA.str().c_str()) != 0 )
- {
#endif
+ {
bool existe = false ;
#ifndef WIN32
DIR *dp;
#ifndef WIN32
if (chdir(DirCompute.str().c_str()) != 0)
{
-// Creation du repertoire car il n'existe pas :
if (mkdir(DirCompute.str().c_str(), S_IRWXU|S_IRGRP|S_IXGRP) != 0)
- {
#else
if (_chdir(DirCompute.str().c_str()) != 0)
{
-// Creation du repertoire car il n'existe pas :
if (_mkdir(DirCompute.str().c_str()) != 0)
- {
#endif
+ {
// GERALD -- QMESSAGE BOX
std::cerr << "Pb Creation du repertoire DirCompute = " << DirCompute.str() << std::endl;
VERIFICATION("Pb a la creation du repertoire" == 0);
TypeRaff = 1 ;
TypeDera = 0 ;
}
- else
+ else if ( TypeRaffDera == -1 )
{
TypeRaff = 0 ;
TypeDera = 1 ;
}
+ else
+ {
+ ASSERT( "TypeRaffDera should be 1 or -1" == 0 );
+ }
myHomardHypothesis->SetAdapType( -1 );
myHomardHypothesis->SetRefinTypeDera( TypeRaff, TypeDera );
}
void HOMARD_Hypothesis_i::SetRefinThr( CORBA::Long TypeThR, CORBA::Double ThreshR )
{
myHomardHypothesis->SetAdapType( 1 );
- int TypeDera = myHomardHypothesis->GetUnRefType() ;
- myHomardHypothesis->SetRefinTypeDera( 1, TypeDera );
+ if ( TypeThR > 0 )
+ {
+ int TypeDera = myHomardHypothesis->GetUnRefType() ;
+ myHomardHypothesis->SetRefinTypeDera( 1, TypeDera );
+ }
myHomardHypothesis->SetRefinThr( TypeThR, ThreshR );
}
//=============================================================================
void HOMARD_Hypothesis_i::SetUnRefThr( CORBA::Long TypeThC, CORBA::Double ThreshC )
{
myHomardHypothesis->SetAdapType( 1 );
- int TypeRaff = myHomardHypothesis->GetRefinType() ;
- myHomardHypothesis->SetRefinTypeDera( TypeRaff, 1 );
+ if ( TypeThC > 0 )
+ {
+ int TypeRaff = myHomardHypothesis->GetRefinType() ;
+ myHomardHypothesis->SetRefinTypeDera( TypeRaff, 1 );
+ }
myHomardHypothesis->SetUnRefThr( TypeThC, ThreshC );
}
//=============================================================================