|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
threaditerator.hh
Go to the documentation of this file.
33 typedef typename GridPartType :: template Codim< 0 > :: template Partition< pitype > :: IteratorType IteratorType ;
62 explicit ThreadIterator( const GridPartType& gridPart, const ParameterReader ¶meter = Parameter::container() )
111 DUNE_THROW(InvalidStateException,"ThreadIterator needs a grid with viewThreadSafe capability!");
int size() const
#define DUNE_THROW(E,...)
size_t() const
PartitionIteratorType
int sequence() const
return number of sequence, if dofmanagers memory was changed by calling some method like resize,...
Definition dofmanager.hh:1007
Definition domainfilter.hh:55
static ParameterContainer & container()
Definition io/parameter.hh:199
Definition mpimanager.hh:353
DofManager< GridType > DofManagerType
Definition threaditerator.hh:36
int thread() const
return thread number of running thread
Definition threaditerator.hh:262
GridPartType::template Codim< 0 >::EntityType EntityType
Definition threaditerator.hh:34
void checkConsistency(const size_t totalElements)
Definition threaditerator.hh:283
static const PartitionIteratorType pitype
Definition threaditerator.hh:29
int thread(const EntityType &entity) const
return thread number this entity belongs to
Definition threaditerator.hh:253
IteratorType begin(int thread) const
Definition threaditerator.hh:215
GridPartType::IndexSetType IndexSetType
Definition threaditerator.hh:35
IteratorType end() const
return end iterator for current thread
Definition threaditerator.hh:221
std::vector< std::vector< int > > threadId_
Definition threaditerator.hh:53
std::vector< std::unique_ptr< FilterType > > filters_
Definition threaditerator.hh:54
void update()
update internal list of iterators
Definition threaditerator.hh:93
void setMasterRatio(const double ratio)
set ratio between master thread and other threads in comp time
Definition threaditerator.hh:268
DomainFilter< GridPartType > FilterType
Definition threaditerator.hh:38
GridPartType::template Codim< 0 >::template Partition< pitype >::IteratorType IteratorType
Definition threaditerator.hh:33
const bool communicationThread_
Definition threaditerator.hh:57
size_t countElements(const Iterator &begin, const Iterator &end) const
Definition threaditerator.hh:274
IteratorType begin() const
return begin iterator for current thread
Definition threaditerator.hh:202
const FilterType & filter(const unsigned int thread) const
return filter for given thread
Definition threaditerator.hh:86
int index(const EntityType &entity) const
return thread number this entity belongs to
Definition threaditerator.hh:240
int threadParallel(const EntityType &entity) const
Definition threaditerator.hh:245
const DofManagerType & dofManager_
Definition threaditerator.hh:43
std::vector< IteratorType > iterators_
Definition threaditerator.hh:51
const MPIManager::ThreadPoolType & threadPool_
Definition threaditerator.hh:46
ThreadIterator(const GridPartType &gridPart, const ParameterReader ¶meter=Parameter::container())
contructor creating thread iterators
Definition threaditerator.hh:62
ThreadIteratorStorage(const GridPart &gridPart)
Definition threaditerator.hh:310
Storage of thread iterators using domain decomposition.
Definition threaditeratorstorage.hh:22
Definition dofmanager.hh:786
size_type size() const
return size of array
Definition dynamicarray.hh:170
void setMemoryFactor(double memFactor)
set memory factor
Definition dynamicarray.hh:296
T end(T... args)
T endl(T... args)
T find(T... args)
T insert(T... args)
T resize(T... args)
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8