X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_subMesh.cxx;fp=src%2FSMESH%2FSMESH_subMesh.cxx;h=b28d44b4e704d9de90cd7bcb964c620268308532;hb=45f8178054cb45849293af9165943dd41c2ddbc8;hp=9c30aa8119de8395c99c05c74d484ab061f3205d;hpb=b58c9632e3158d6cdbf2374324f84c3b959544e8;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index 9c30aa811..b28d44b4e 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -1507,10 +1507,7 @@ bool SMESH_subMesh::ComputeStateEngine(compute_event event) { algo = GetAlgo(); ASSERT(algo); - if(!_father->IsParallel()) - ret = algo->CheckHypothesis((*_father), _subShape, hyp_status); - else - ret = true; + ret = algo->CheckHypothesis((*_father), _subShape, hyp_status); if (!ret) { MESSAGE("***** verify compute state *****"); @@ -1519,8 +1516,9 @@ bool SMESH_subMesh::ComputeStateEngine(compute_event event) break; } TopoDS_Shape shape = _subShape; - if(!_father->IsParallel()) - algo->SubMeshesToCompute().assign( 1, this ); + _father->Lock(); + algo->SubMeshesToCompute().assign( 1, this ); + _father->Unlock(); // check submeshes needed // In parallel there would be no submesh to check if (_father->HasShapeToMesh() && !_father->IsParallel()) { @@ -1741,8 +1739,7 @@ bool SMESH_subMesh::ComputeStateEngine(compute_event event) updateDependantsState( SUBMESH_COMPUTED ); } // let algo clear its data gathered while algo->Compute() - if(!_father->IsParallel()) - algo->CheckHypothesis((*_father), _subShape, hyp_status); + algo->CheckHypothesis((*_father), _subShape, hyp_status); } break; case COMPUTE_CANCELED: // nothing to do