NeoPZ
Public Member Functions | Public Attributes | List of all members
par_assemble_task_t< TVar >::work_item_t< TTVar > Struct Template Reference
Collaboration diagram for par_assemble_task_t< TVar >::work_item_t< TTVar >:
[legend]

Public Member Functions

 work_item_t (unsigned submesh_idx, const TPZAutoPointer< TPZDohrSubstructCondense< TTVar > > &substruct)
 

Public Attributes

unsigned fSubMeshIndex
 
TPZAutoPointer< TPZDohrSubstructCondense< TTVar > > fSubstruct
 

Detailed Description

template<class TVar>
template<class TTVar>
struct par_assemble_task_t< TVar >::work_item_t< TTVar >

We divide the assemble procedure into N work items, which will be executed by one or several tasks. The TBB parallel_for construct automatically divide the work items in subsets and "creates" tasks to execute the work in each subset. Each task invokes the operator(blocked_range subset), which will be responsible for executing the work items in the subset.

Definition at line 343 of file tbbtst.cpp.

Constructor & Destructor Documentation

◆ work_item_t()

template<class TVar>
template<class TTVar>
par_assemble_task_t< TVar >::work_item_t< TTVar >::work_item_t ( unsigned  submesh_idx,
const TPZAutoPointer< TPZDohrSubstructCondense< TTVar > > &  substruct 
)
inline

Definition at line 345 of file tbbtst.cpp.

Member Data Documentation

◆ fSubMeshIndex

template<class TVar>
template<class TTVar>
unsigned par_assemble_task_t< TVar >::work_item_t< TTVar >::fSubMeshIndex

Definition at line 348 of file tbbtst.cpp.

Referenced by par_assemble_task_t< TVar >::run_serial().

◆ fSubstruct

template<class TVar>
template<class TTVar>
TPZAutoPointer<TPZDohrSubstructCondense<TTVar> > par_assemble_task_t< TVar >::work_item_t< TTVar >::fSubstruct

Definition at line 349 of file tbbtst.cpp.

Referenced by par_assemble_task_t< TVar >::run_serial().


The documentation for this struct was generated from the following file: