From 7a8c011e49c1012d4de8ab9b13353286c1775893 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Thu, 8 Feb 2018 16:42:26 +0100 Subject: [PATCH] Do not unregister in Publish: random problems when meshing in parallel (yacs foreach) in distributed python scripts --- src/SMESH_I/SMESH_Gen_i_1.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SMESH_I/SMESH_Gen_i_1.cxx b/src/SMESH_I/SMESH_Gen_i_1.cxx index bb3703de1..6444617c7 100644 --- a/src/SMESH_I/SMESH_Gen_i_1.cxx +++ b/src/SMESH_I/SMESH_Gen_i_1.cxx @@ -298,10 +298,10 @@ static SALOMEDS::SObject_ptr publish(SALOMEDS::Study_ptr theStudy, if ( !sameIOR ) { iorAttr->SetValue( objStr.in() ); - // UnRegister() !!! - SALOME::GenericObj_var genObj = SALOME::GenericObj::_narrow( theIOR ); - if ( !genObj->_is_nil() ) - genObj->UnRegister(); + // UnRegister() !!! --> No: random problems when meshing in parallel (yacs foreach) in distributed python scripts +// SALOME::GenericObj_var genObj = SALOME::GenericObj::_narrow( theIOR ); +// if ( !genObj->_is_nil() ) +// genObj->UnRegister(); } } -- 2.39.2