X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_Homard_i.cxx;h=55699404a176729de876f15b09ff1e6c782383fd;hb=e0d6bb1193aa8f69bd3e36e3cc6af3b8133202ec;hp=c5d5a8fb837716dbcb629513cc05a40ff68d4f37;hpb=090d533f339d886d08177706ed5e4a03aea99511;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_Homard_i.cxx b/src/SMESH_I/SMESH_Homard_i.cxx index c5d5a8fb8..55699404a 100644 --- a/src/SMESH_I/SMESH_Homard_i.cxx +++ b/src/SMESH_I/SMESH_Homard_i.cxx @@ -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 = " <<