mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 09:38:33 +05:00
0022172: [CEA 790] create the groups corresponding to domains
Fix dump of AddHypothesis() in the case w/o geometry
This commit is contained in:
parent
0f7414545b
commit
401090842f
@ -583,13 +583,13 @@ SMESH::Hypothesis_Status SMESH_Mesh_i::AddHypothesis(GEOM::GEOM_Object_ptr
|
|||||||
if(MYDEBUG) MESSAGE( " AddHypothesis(): status = " << status );
|
if(MYDEBUG) MESSAGE( " AddHypothesis(): status = " << status );
|
||||||
|
|
||||||
// Update Python script
|
// Update Python script
|
||||||
if(_impl->HasShapeToMesh()) {
|
//if(_impl->HasShapeToMesh()) {
|
||||||
TPythonDump() << "status = " << _this() << ".AddHypothesis( "
|
TPythonDump() << "status = " << _this() << ".AddHypothesis( "
|
||||||
<< aSubShapeObject << ", " << anHyp << " )";
|
<< aSubShapeObject << ", " << anHyp << " )";
|
||||||
}
|
// }
|
||||||
else {
|
// else {
|
||||||
TPythonDump() << "status = " << _this() << ".AddHypothesis( "<< anHyp << " )";
|
// TPythonDump() << "status = " << _this() << ".AddHypothesis( "<< anHyp << " )";
|
||||||
}
|
// }
|
||||||
|
|
||||||
return ConvertHypothesisStatus(status);
|
return ConvertHypothesisStatus(status);
|
||||||
}
|
}
|
||||||
@ -1109,9 +1109,9 @@ SMESH::ListOfGroups * SMESH_Mesh_i::GetGroups() throw(SALOME::SALOME_Exception)
|
|||||||
|
|
||||||
// Python Dump
|
// Python Dump
|
||||||
TPythonDump aPythonDump;
|
TPythonDump aPythonDump;
|
||||||
if ( !_mapGroups.empty() ) // (IMP13463) avoid "SyntaxError: can't assign to []"
|
if ( !_mapGroups.empty() )
|
||||||
|
{
|
||||||
aPythonDump << "[ ";
|
aPythonDump << "[ ";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
aList->length( _mapGroups.size() );
|
aList->length( _mapGroups.size() );
|
||||||
int i = 0;
|
int i = 0;
|
||||||
@ -1128,11 +1128,8 @@ SMESH::ListOfGroups * SMESH_Mesh_i::GetGroups() throw(SALOME::SALOME_Exception)
|
|||||||
catch(SALOME_Exception & S_ex) {
|
catch(SALOME_Exception & S_ex) {
|
||||||
THROW_SALOME_CORBA_EXCEPTION(S_ex.what(), SALOME::BAD_PARAM);
|
THROW_SALOME_CORBA_EXCEPTION(S_ex.what(), SALOME::BAD_PARAM);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update Python script
|
|
||||||
if ( !_mapGroups.empty() ) // (IMP13463) avoid "SyntaxError: can't assign to []"
|
|
||||||
aPythonDump << " ] = " << _this() << ".GetGroups()";
|
aPythonDump << " ] = " << _this() << ".GetGroups()";
|
||||||
|
}
|
||||||
return aList._retn();
|
return aList._retn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user