|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
Public Types |
Public Member Functions |
Static Public Attributes |
Protected Member Functions |
Protected Attributes |
List of all members
Dune::Fem::ThreadIterator< GridPart, ptype > Class Template Reference
Thread iterators. More...
#include <dune/fem/misc/threads/threaditerator.hh>
Inheritance diagram for Dune::Fem::ThreadIterator< GridPart, ptype >:

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 | |
| int | thread () const |
| return thread number of running thread | |
| 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_ |
| const MPIManager::ThreadPoolType & | threadPool_ |
| 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_ |
Detailed Description
template<class GridPart, PartitionIteratorType ptype = InteriorBorder_Partition>
class Dune::Fem::ThreadIterator< GridPart, ptype >
class Dune::Fem::ThreadIterator< GridPart, ptype >
Thread iterators.
Member Typedef Documentation
◆ DofManagerType
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
| typedef DofManager< GridType > Dune::Fem::ThreadIterator< GridPart, ptype >::DofManagerType |
◆ EntityType
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
| typedef GridPartType::template Codim<0>::EntityType Dune::Fem::ThreadIterator< GridPart, ptype >::EntityType |
◆ FilterType
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
| typedef DomainFilter<GridPartType> Dune::Fem::ThreadIterator< GridPart, ptype >::FilterType |
◆ GridPartType
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
| typedef GridPart Dune::Fem::ThreadIterator< GridPart, ptype >::GridPartType |
◆ GridType
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
| typedef GridPartType::GridType Dune::Fem::ThreadIterator< GridPart, ptype >::GridType |
◆ IndexSetType
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
| typedef GridPartType::IndexSetType Dune::Fem::ThreadIterator< GridPart, ptype >::IndexSetType |
◆ IteratorType
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
| typedef GridPartType::template Codim<0>::template Partition<pitype>::IteratorType Dune::Fem::ThreadIterator< GridPart, ptype >::IteratorType |
Constructor & Destructor Documentation
◆ ThreadIterator()
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inlineexplicit |
contructor creating thread iterators
Member Function Documentation
◆ begin() [1/2]
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
return begin iterator for current thread
◆ begin() [2/2]
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
◆ checkConsistency()
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inlineprotected |
◆ countElements()
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
template<class Iterator >
|
inlineprotected |
◆ end() [1/2]
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
return end iterator for current thread
◆ end() [2/2]
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
◆ filter()
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
return filter for given thread
◆ index()
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
return thread number this entity belongs to
◆ setMasterRatio()
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
set ratio between master thread and other threads in comp time
◆ thread() [1/2]
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
return thread number of running thread
◆ thread() [2/2]
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
return thread number this entity belongs to
◆ threadParallel()
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
◆ update()
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
inline |
update internal list of iterators
Member Data Documentation
◆ communicationThread_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ dofManager_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ filters_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ gridPart_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ indexSet_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ iterators_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ numThreads_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ pitype
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
static |
◆ sequence_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ threadId_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ threadNum_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ threadPool_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
◆ verbose_
template<class GridPart , PartitionIteratorType ptype = InteriorBorder_Partition>
|
protected |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8