Add method AddBoundary to idl interface HOMARD_Gen

This commit is contained in:
jfa 2022-01-10 11:33:28 +03:00
parent 090d533f33
commit e0d6bb1193
3 changed files with 15 additions and 0 deletions

View File

@ -147,6 +147,7 @@ module SMESHHOMARD
in string theWorkingDir) raises(SALOME::SALOME_Exception);
// Associate boundaries to groups
void AddBoundary(in string BoundaryName) raises (SALOME::SALOME_Exception);
void AddBoundaryGroup(in string BoundaryName,
in string Group) raises (SALOME::SALOME_Exception);

View File

@ -2493,6 +2493,19 @@ void HOMARD_Gen_i::PythonDump()
MESSAGE ("End PythonDump");
}
void HOMARD_Gen_i::AddBoundary(const char* BoundaryName)
{
MESSAGE("HOMARD_Gen_i::AddBoundary : BoundaryName = " << BoundaryName);
if (myCase->_is_nil()) {
SALOME::ExceptionStruct es;
es.type = SALOME::BAD_PARAM;
std::string text = "The input mesh must be defined before boundary addition";
es.text = CORBA::string_dup(text.c_str());
throw SALOME::SALOME_Exception(es);
}
myCase->AddBoundary(BoundaryName);
}
void HOMARD_Gen_i::AddBoundaryGroup(const char* BoundaryName, const char* Group)
{
MESSAGE("HOMARD_Gen_i::AddBoundaryGroup : BoundaryName = " <<

View File

@ -240,6 +240,7 @@ public:
void DeleteCase();
CORBA::Long DeleteIteration(int numIter);
void AddBoundary(const char* Boundary);
void AddBoundaryGroup(const char* Boundary, const char* Group);
void AssociateCaseIter(int numIter, const char* labelIter);