From: Christophe Bourcier Date: Thu, 2 Aug 2018 09:08:23 +0000 (+0200) Subject: Enable multithread in Partition (works with or without TBB) X-Git-Tag: V9_2_0a2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48be17f15d0a5b585fcd18faa8f8f376c2ce646d;p=modules%2Fgeom.git Enable multithread in Partition (works with or without TBB) --- diff --git a/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx b/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx index 09ed9bb5d..c9ef674db 100644 --- a/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx @@ -309,6 +309,11 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(Handle(TFunction_Logbook)& lo PS.SetLimitMode(aCI.GetKeepNonlimitShapes()); PS.SetLimit((TopAbs_ShapeEnum)aCI.GetLimit()); + + // Set parallel processing mode (default is false) + Standard_Boolean bRunParallel = Standard_True; + PS.SetRunParallel(bRunParallel); + PS.Perform(); //skl PS.Compute();