dune-fem 2.8.0
|
Thread iterators. More...
#include <dune/fem/misc/threads/threaditerator.hh>
Public Types | |
typedef GridPart | GridPartType |
typedef GridPartType::GridType | GridType |
typedef GridPartType::template Codim< 0 >::template Partition< pitype >::IteratorType | IteratorType |
typedef GridPartType::template Codim< 0 >::EntityType | EntityType |
typedef GridPartType::IndexSetType | IndexSetType |
typedef DofManager< GridType > | DofManagerType |
typedef DomainFilter< GridPartType > | FilterType |
Public Member Functions | |
ThreadIterator (const GridPartType &gridPart, const ParameterReader ¶meter=Parameter::container()) | |
contructor creating thread iterators | |
const FilterType & | filter (const unsigned int thread) const |
return filter for given thread | |
void | update () |
update internal list of iterators | |
IteratorType | begin () const |
return begin iterator for current thread | |
IteratorType | begin (int thread) const |
IteratorType | end () const |
return end iterator for current thread | |
IteratorType | end (int thread) const |
int | index (const EntityType &entity) const |
return thread number this entity belongs to | |
int | threadParallel (const EntityType &entity) const |
int | thread (const EntityType &entity) const |
return thread number this entity belongs to | |
void | setMasterRatio (const double ratio) |
set ratio between master thread and other threads in comp time | |
Static Public Attributes | |
static const PartitionIteratorType | pitype = ptype |
Protected Member Functions | |
template<class Iterator > | |
size_t | countElements (const Iterator &begin, const Iterator &end) const |
void | checkConsistency (const size_t totalElements) |
Protected Attributes | |
const GridPartType & | gridPart_ |
const DofManagerType & | dofManager_ |
const IndexSetType & | indexSet_ |
int | sequence_ |
int | numThreads_ |
std::vector< IteratorType > | iterators_ |
DynamicArray< int > | threadNum_ |
std::vector< std::vector< int > > | threadId_ |
std::vector< std::unique_ptr< FilterType > > | filters_ |
const bool | communicationThread_ |
const bool | verbose_ |
Thread iterators.
typedef DofManager< GridType > Dune::Fem::ThreadIterator< GridPart, ptype >::DofManagerType |
typedef GridPartType::template Codim<0>::EntityType Dune::Fem::ThreadIterator< GridPart, ptype >::EntityType |
typedef DomainFilter<GridPartType> Dune::Fem::ThreadIterator< GridPart, ptype >::FilterType |
typedef GridPart Dune::Fem::ThreadIterator< GridPart, ptype >::GridPartType |
typedef GridPartType::GridType Dune::Fem::ThreadIterator< GridPart, ptype >::GridType |
typedef GridPartType::IndexSetType Dune::Fem::ThreadIterator< GridPart, ptype >::IndexSetType |
typedef GridPartType::template Codim<0>::template Partition<pitype>::IteratorType Dune::Fem::ThreadIterator< GridPart, ptype >::IteratorType |
|
inlineexplicit |
contructor creating thread iterators
|
inline |
return begin iterator for current thread
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
return end iterator for current thread
|
inline |
|
inline |
return filter for given thread
|
inline |
return thread number this entity belongs to
|
inline |
set ratio between master thread and other threads in comp time
|
inline |
return thread number this entity belongs to
|
inline |
|
inline |
update internal list of iterators
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |