Do not unregister in Publish: random problems when meshing in parallel (yacs foreach) in distributed python scripts

This commit is contained in:
Paul RASCLE 2018-02-08 16:42:26 +01:00
parent b7c268a645
commit 7a8c011e49

View File

@ -298,10 +298,10 @@ static SALOMEDS::SObject_ptr publish(SALOMEDS::Study_ptr theStudy,
if ( !sameIOR ) if ( !sameIOR )
{ {
iorAttr->SetValue( objStr.in() ); iorAttr->SetValue( objStr.in() );
// UnRegister() !!! // UnRegister() !!! --> No: random problems when meshing in parallel (yacs foreach) in distributed python scripts
SALOME::GenericObj_var genObj = SALOME::GenericObj::_narrow( theIOR ); // SALOME::GenericObj_var genObj = SALOME::GenericObj::_narrow( theIOR );
if ( !genObj->_is_nil() ) // if ( !genObj->_is_nil() )
genObj->UnRegister(); // genObj->UnRegister();
} }
} }