X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARD%2FHOMARD_Cas.cxx;h=4b67d08cda5b76902acdf9aee98ece1c6a66db3a;hb=refs%2Ftags%2FV9_13_0b1;hp=68a9b8bc1c2a27953233df6605a7db47740ffe45;hpb=90bd196f5fb8925a7e6e7dc3339c61b7ce3fa210;p=modules%2Fhomard.git diff --git a/src/HOMARD/HOMARD_Cas.cxx b/src/HOMARD/HOMARD_Cas.cxx index 68a9b8bc..4b67d08c 100644 --- a/src/HOMARD/HOMARD_Cas.cxx +++ b/src/HOMARD/HOMARD_Cas.cxx @@ -1,6 +1,6 @@ // HOMARD HOMARD : implementation of HOMARD idl descriptions // -// Copyright (C) 2011-2014 CEA/DEN, EDF R&D +// Copyright (C) 2011-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -19,7 +19,7 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // File : HOMARD_Cas.cxx -// Author : Paul RASCLE, EDF +// Author : Gerald NICOLAS, EDF // Module : HOMARD // // Remarques : @@ -50,7 +50,7 @@ */ //============================================================================= HOMARD_Cas::HOMARD_Cas(): - _Name(""), _NomDir("/tmp"), _ConfType(1) + _Name(""), _NomDir("/tmp"), _ConfType(0), _ExtType(0) { MESSAGE("HOMARD_Cas"); } @@ -82,6 +82,8 @@ std::string HOMARD_Cas::GetDumpPython() const aScript << _NomDir << "\")\n"; aScript << "\t" <<_Name << ".SetConfType("; aScript << _ConfType << ")\n"; + aScript << "\t" <<_Name << ".SetExtType("; + aScript << _ExtType << ")\n"; // Suivi de frontieres std::list::const_iterator it = _ListBoundaryGroup.begin(); while(it != _ListBoundaryGroup.end()) @@ -107,11 +109,11 @@ std::string HOMARD_Cas::GetDumpPython() const //============================================================================= int HOMARD_Cas::SetDirName( const char* NomDir ) { - MESSAGE("SetDirName, NomDir : "< 1 ) { erreur = 1 ; } // Creation if ( CHDIR(NomDir) == 0 ) @@ -142,10 +144,13 @@ int HOMARD_Cas::GetNumberofIter() { return _ListIter.size(); } +// +// Le type de conformite ou non conformite +// //============================================================================= void HOMARD_Cas::SetConfType( int Conftype ) { -// VERIFICATION( (Conftype>=1) && (Conftype<=4) ); +// VERIFICATION( (Conftype>=-2) && (Conftype<=3) ); _ConfType = Conftype; } //============================================================================= @@ -154,6 +159,20 @@ const int HOMARD_Cas::GetConfType() const return _ConfType; } // +// Le type exterieur +// +//============================================================================= +void HOMARD_Cas::SetExtType( int ExtType ) +{ +// VERIFICATION( (ExtType>=0) && (ExtType<=2) ); + _ExtType = ExtType; +} +//============================================================================= +const int HOMARD_Cas::GetExtType() const +{ + return _ExtType; +} +// // La boite englobante // //============================================================================= @@ -201,10 +220,17 @@ void HOMARD_Cas::SupprGroups() // Les frontieres // //============================================================================= +void HOMARD_Cas::AddBoundary( const char* Boundary ) +{ +// MESSAGE ( ". HOMARD_Cas::AddBoundary : Boundary = " << Boundary ); + const char* Group = ""; + AddBoundaryGroup( Boundary, Group ); +} +//============================================================================= void HOMARD_Cas::AddBoundaryGroup( const char* Boundary, const char* Group ) { -// MESSAGE ( ". AddBoundaryGroup : Boundary = " << Boundary ); -// MESSAGE ( ". AddBoundaryGroup : Group = " << Group ); +// MESSAGE ( ". HOMARD_Cas::AddBoundaryGroup : Boundary = " << Boundary ); +// MESSAGE ( ". HOMARD_Cas::AddBoundaryGroup : Group = " << Group ); _ListBoundaryGroup.push_back( Boundary ); _ListBoundaryGroup.push_back( Group ); }