mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-11 22:53:08 +05:00
Add method AddBoundary to idl interface HOMARD_Gen
This commit is contained in:
parent
090d533f33
commit
e0d6bb1193
@ -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);
|
||||
|
||||
|
@ -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 = " <<
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user