mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-29 05:20:34 +05:00
22372: EDF 2758 SMESH: Create/Manage groups on a mesh composed of nodes and balls
Prepare to parallelism
This commit is contained in:
parent
6a811b721c
commit
1f4550c491
@ -3408,6 +3408,31 @@ bool LogicalOR::IsSatisfy( long theId )
|
|||||||
FILTER
|
FILTER
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// #ifdef WITH_TBB
|
||||||
|
// #include <tbb/parallel_for.h>
|
||||||
|
// #include <tbb/enumerable_thread_specific.h>
|
||||||
|
|
||||||
|
// namespace Parallel
|
||||||
|
// {
|
||||||
|
// typedef tbb::enumerable_thread_specific< TIdSequence > TIdSeq;
|
||||||
|
|
||||||
|
// struct Predicate
|
||||||
|
// {
|
||||||
|
// const SMDS_Mesh* myMesh;
|
||||||
|
// PredicatePtr myPredicate;
|
||||||
|
// TIdSeq & myOKIds;
|
||||||
|
// Predicate( const SMDS_Mesh* m, PredicatePtr p, TIdSeq & ids ):
|
||||||
|
// myMesh(m), myPredicate(p->Duplicate()), myOKIds(ids) {}
|
||||||
|
// void operator() ( const tbb::blocked_range<size_t>& r ) const
|
||||||
|
// {
|
||||||
|
// for ( size_t i = r.begin(); i != r.end(); ++i )
|
||||||
|
// if ( myPredicate->IsSatisfy( i ))
|
||||||
|
// myOKIds.local().push_back();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// #endif
|
||||||
|
|
||||||
Filter::Filter()
|
Filter::Filter()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user