|
dune-pdelab 2.8
|
Loading...
Searching...
No Matches
lfsindexcache.hh
Go to the documentation of this file.
309 _container_indices[0][1] = LFS::Traits::GridFunctionSpace::Ordering::Traits::DOFIndexAccessor::entityIndex(_lfs.dofIndex(0));
315 for (typename CIVector::iterator it = _container_indices.begin(); it != _container_indices.end(); ++it)
334 > index_mapper(_lfs._dof_indices->begin(),_container_indices.begin(),leaf_sizes.begin(),_lfs.subSpaceDepth());
370 for (typename std::vector<std::pair<size_type,typename C::const_iterator> >::const_iterator it = non_dirichlet_constrained_dofs.begin();
400 std::pair<typename CIMap::iterator,bool> r = _container_index_map.insert(std::make_pair(std::ref(i),CI()));
516 typename std::vector<const ContainerIndex*>::const_iterator endit = std::unique(extended_cis.begin(),extended_cis.end());
520 for (typename std::vector<const ContainerIndex*>::const_iterator it = extended_cis.begin(); it != endit; ++it, ++i)
608 _container_indices[0][1] = LFS::Traits::GridFunctionSpace::Ordering::Traits::DOFIndexAccessor::entityIndex(_lfs.dofIndex(0));
614 for (typename CIVector::iterator it = _container_indices.begin(); it != _container_indices.end(); ++it)
630 > index_mapper(_lfs._dof_indices->begin(),_container_indices.begin(),leaf_sizes.begin(),_lfs.subSpaceDepth());
648 std::pair<typename CIMap::iterator,bool> r = _container_index_map.insert(std::make_pair(std::ref(i),CI()));
793 for (typename std::vector<std::pair<size_type,typename C::const_iterator> >::const_iterator it = non_dirichlet_constrained_dofs.begin();
978 : public LFSIndexCacheBase<LFS,C,typename LFS::Traits::GridFunctionSpace::Ordering::CacheTag,fast>
984 LFSIndexCache(const LFS& lfs, const CC& c, bool enable_constraints_caching = !std::is_same<C,EmptyTransformation>::value)
985 : LFSIndexCacheBase<LFS,C,typename LFS::Traits::GridFunctionSpace::Ordering::CacheTag,fast>(lfs,c,enable_constraints_caching)
990 : LFSIndexCacheBase<LFS,C,typename LFS::Traits::GridFunctionSpace::Ordering::CacheTag,fast>(lfs)
void applyToTree(Tree &&tree, Visitor &&visitor)
ImplementationDefined child(Node &&node, Indices... indices)
iterator end()
virtual void operator()()=0
#define DUNE_THROW(E, m)
void constraints(const GFS &gfs, CG &cg, const bool verbose=false)
construct constraints
Definition constraints.hh:749
STL namespace.
Iterator extract_lfs_leaf_sizes(const LFS &lfs, Iterator it)
Definition lfsindexcache.hh:165
For backward compatibility – Do not use this!
void resize(size_t s)
Definition constraintstransformation.hh:112
Definition lfsindexcache.hh:30
const View dereference() const
Definition lfsindexcache.hh:125
DOFIndexViewIterator()
Definition lfsindexcache.hh:75
bool equals(const DOFIndexViewIterator &other) const
Definition lfsindexcache.hh:100
const std::iterator_traits< Iterator >::reference raw_index() const
Definition lfsindexcache.hh:95
pointer operator->() const
Definition lfsindexcache.hh:130
std::ptrdiff_t distanceTo(DOFIndexViewIterator &other) const
Definition lfsindexcache.hh:120
DOFIndexViewIterator(Iterator it, std::size_t tail_length=0)
Definition lfsindexcache.hh:80
Definition lfsindexcache.hh:58
View * operator->()
Definition lfsindexcache.hh:64
Definition lfsindexcache.hh:147
extract_lfs_leaf_size_visitor(Iterator leaf_size_container_iterator)
Definition lfsindexcache.hh:156
void leaf(const LeafLFS &leaf_lfs, TreePath tp)
Definition lfsindexcache.hh:150
Definition lfsindexcache.hh:181
std::stack< ContainerIterator, ReservedVector< ContainerIterator, tree_depth > > container_stack
Definition lfsindexcache.hh:237
LeafSizeIterator leaf_size_pos
Definition lfsindexcache.hh:235
void leaf(const Ordering &ordering, TreePath tp)
Definition lfsindexcache.hh:184
DOFIndexViewIterator< DOFIterator > dof_end
Definition lfsindexcache.hh:233
std::stack< DOFIndexViewIterator< DOFIterator >, ReservedVector< DOFIndexViewIterator< DOFIterator >, tree_depth > > dof_stack
Definition lfsindexcache.hh:236
void post(const Ordering &ordering, TreePath tp)
Definition lfsindexcache.hh:197
DOFIndexViewIterator< DOFIterator > dof_pos
Definition lfsindexcache.hh:232
void pre(const Ordering &ordering, TreePath tp)
Definition lfsindexcache.hh:210
ContainerIterator container_pos
Definition lfsindexcache.hh:234
map_dof_indices_to_container_indices(DOFIterator dof_begin, ContainerIterator container_begin, LeafSizeIterator leaf_size_begin, std::size_t dof_index_tail_length=0)
Definition lfsindexcache.hh:221
Definition lfsindexcache.hh:245
std::unordered_map< const CI *, std::pair< size_type, bool > > InverseMap
Definition lfsindexcache.hh:269
bool constraintsCachingEnabled() const
Definition lfsindexcache.hh:463
Ordering::Traits::DOFIndex DOFIndex
Definition lfsindexcache.hh:262
size_type extendedOffset(size_type i) const
Definition lfsindexcache.hh:456
Ordering::Traits::ContainerIndex ContainerIndex
Definition lfsindexcache.hh:260
std::pair< size_type, bool > localIndex(const ContainerIndex &ci) const
Definition lfsindexcache.hh:442
ConstraintsVector::const_iterator ConstraintsIterator
Definition lfsindexcache.hh:291
LFS LocalFunctionSpace
Definition lfsindexcache.hh:256
const LocalFunctionSpace & localFunctionSpace() const
Definition lfsindexcache.hh:432
LFSIndexCacheBase(const LFS &lfs, const C &constraints, bool enable_constraints_caching)
Definition lfsindexcache.hh:293
std::unordered_map< DI, CI > CIMap
Definition lfsindexcache.hh:267
std::vector< ConstraintsEntry > ConstraintsVector
Definition lfsindexcache.hh:290
LFS::Traits::GridFunctionSpace GFS
Definition lfsindexcache.hh:258
bool isConstrained(size_type i) const
Definition lfsindexcache.hh:410
bool isDirichletConstraint(size_type i) const
Definition lfsindexcache.hh:415
const DI & dofIndex(size_type i) const
Definition lfsindexcache.hh:387
const CI & containerIndex(size_type i) const
Definition lfsindexcache.hh:392
size_type offset(size_type i) const
Definition lfsindexcache.hh:449
ConstraintsIterator constraintsEnd(size_type i) const
Definition lfsindexcache.hh:426
const CI & containerIndex(const DI &i) const
Definition lfsindexcache.hh:397
ConstraintsIterator constraintsBegin(size_type i) const
Definition lfsindexcache.hh:420
Definition lfsindexcache.hh:273
C::mapped_type::mapped_type Weight
Definition lfsindexcache.hh:275
CI ContainerIndex
Definition lfsindexcache.hh:274
const ContainerIndex & containerIndex() const
Definition lfsindexcache.hh:277
const Weight & weight() const
Definition lfsindexcache.hh:282
bool constraintsCachingEnabled() const
Definition lfsindexcache.hh:688
std::vector< CI > CIVector
Definition lfsindexcache.hh:566
bool isConstrained(size_type i) const
Definition lfsindexcache.hh:658
LFSIndexCacheBase(const LFS &lfs, const C &c, bool enable_constraints_caching)
Definition lfsindexcache.hh:596
Ordering::Traits::ContainerIndex ContainerIndex
Definition lfsindexcache.hh:560
ContainerIndex CI
Definition lfsindexcache.hh:561
size_type size() const
Definition lfsindexcache.hh:683
Ordering::Traits::DOFIndex DOFIndex
Definition lfsindexcache.hh:562
std::size_t size_type
Definition lfsindexcache.hh:564
const CI & containerIndex(const DI &i) const
Definition lfsindexcache.hh:645
const LocalFunctionSpace & localFunctionSpace() const
Definition lfsindexcache.hh:678
std::unordered_map< DI, CI > CIMap
Definition lfsindexcache.hh:567
LFS LocalFunctionSpace
Definition lfsindexcache.hh:557
ConstraintsIterator constraintsBegin(size_type i) const
Definition lfsindexcache.hh:668
std::vector< ConstraintsEntry > ConstraintsVector
Definition lfsindexcache.hh:586
bool isDirichletConstraint(size_type i) const
Definition lfsindexcache.hh:663
ConstraintsVector::const_iterator ConstraintsIterator
Definition lfsindexcache.hh:587
const DI & dofIndex(size_type i) const
Definition lfsindexcache.hh:635
ConstraintsIterator constraintsEnd(size_type i) const
Definition lfsindexcache.hh:673
DOFIndex DI
Definition lfsindexcache.hh:563
const CI & containerIndex(size_type i) const
Definition lfsindexcache.hh:640
GFS::Ordering Ordering
Definition lfsindexcache.hh:559
LFS::Traits::GridFunctionSpace GFS
Definition lfsindexcache.hh:558
void update()
Definition lfsindexcache.hh:603
LFSIndexCacheBase(const LFS &lfs)
Definition lfsindexcache.hh:589
CI ContainerIndex
Definition lfsindexcache.hh:572
const Weight & weight() const
Definition lfsindexcache.hh:580
const ContainerIndex & containerIndex() const
Definition lfsindexcache.hh:575
double Weight
Definition lfsindexcache.hh:573
GFS::Ordering Ordering
Definition lfsindexcache.hh:720
CI containerIndex(size_type i) const
Definition lfsindexcache.hh:814
std::vector< CI > CIVector
Definition lfsindexcache.hh:725
bool isDirichletConstraint(size_type i) const
Definition lfsindexcache.hh:829
std::vector< ConstraintsEntry > ConstraintsVector
Definition lfsindexcache.hh:745
LFS LocalFunctionSpace
Definition lfsindexcache.hh:717
std::size_t size_type
Definition lfsindexcache.hh:723
LFS::Traits::GridFunctionSpace GFS
Definition lfsindexcache.hh:719
const LocalFunctionSpace & localFunctionSpace() const
Definition lfsindexcache.hh:846
std::unordered_map< DI, CI > CIMap
Definition lfsindexcache.hh:726
Ordering::Traits::DOFIndex DI
Definition lfsindexcache.hh:722
ConstraintsVector::const_iterator ConstraintsIterator
Definition lfsindexcache.hh:746
const CI & containerIndex(const DI &i) const
Definition lfsindexcache.hh:819
ConstraintsIterator constraintsEnd(size_type i) const
Definition lfsindexcache.hh:840
const DI & dofIndex(size_type i) const
Definition lfsindexcache.hh:809
void update()
Definition lfsindexcache.hh:756
size_type size() const
Definition lfsindexcache.hh:851
LFSIndexCacheBase(const LFS &lfs, const C &constraints)
Definition lfsindexcache.hh:748
Ordering::Traits::ContainerIndex CI
Definition lfsindexcache.hh:721
ConstraintsIterator constraintsBegin(size_type i) const
Definition lfsindexcache.hh:834
bool isConstrained(size_type i) const
Definition lfsindexcache.hh:824
C::mapped_type::mapped_type Weight
Definition lfsindexcache.hh:732
Dune::PDELab::LFSIndexCacheBase< LFS, C, SimpleLFSCacheTag, fast >::ConstraintsEntry::ContainerIndex
CI ContainerIndex
Definition lfsindexcache.hh:731
const Weight & weight() const
Definition lfsindexcache.hh:739
Dune::PDELab::LFSIndexCacheBase< LFS, C, SimpleLFSCacheTag, fast >::ConstraintsEntry::containerIndex
const ContainerIndex & containerIndex() const
Definition lfsindexcache.hh:734
size_type size() const
Definition lfsindexcache.hh:962
LFSIndexCacheBase(const LFS &lfs, const C &c)
Definition lfsindexcache.hh:916
std::size_t size_type
Definition lfsindexcache.hh:885
Dune::PDELab::LFSIndexCacheBase< LFS, EmptyTransformation, SimpleLFSCacheTag, fast >::constraintsEnd
ConstraintsIterator constraintsEnd(size_type i) const
Definition lfsindexcache.hh:952
LFS::Traits::GridFunctionSpace GFS
Definition lfsindexcache.hh:877
GFS::Ordering Ordering
Definition lfsindexcache.hh:878
Dune::PDELab::LFSIndexCacheBase< LFS, EmptyTransformation, SimpleLFSCacheTag, fast >::containerIndex
CI containerIndex(size_type i) const
Definition lfsindexcache.hh:927
ConstraintsIterator constraintsBegin(size_type i) const
Definition lfsindexcache.hh:947
const LocalFunctionSpace & localFunctionSpace() const
Definition lfsindexcache.hh:957
DI DOFIndex
Definition lfsindexcache.hh:884
std::vector< ConstraintsEntry > ConstraintsVector
Definition lfsindexcache.hh:907
ConstraintsVector::const_iterator ConstraintsIterator
Definition lfsindexcache.hh:908
std::unordered_map< DI, CI > CIMap
Definition lfsindexcache.hh:888
void update()
Definition lfsindexcache.hh:922
bool isConstrained(size_type i) const
Definition lfsindexcache.hh:937
std::vector< CI > CIVector
Definition lfsindexcache.hh:887
LFS LocalFunctionSpace
Definition lfsindexcache.hh:876
Dune::PDELab::LFSIndexCacheBase< LFS, EmptyTransformation, SimpleLFSCacheTag, fast >::ContainerIndex
CI ContainerIndex
Definition lfsindexcache.hh:883
Dune::PDELab::LFSIndexCacheBase< LFS, EmptyTransformation, SimpleLFSCacheTag, fast >::containerIndex
CI containerIndex(const DI &i) const
Definition lfsindexcache.hh:932
bool isDirichletConstraint(size_type i) const
Definition lfsindexcache.hh:942
LFSIndexCacheBase(const LFS &lfs)
Definition lfsindexcache.hh:910
const Weight & weight() const
Definition lfsindexcache.hh:901
CI ContainerIndex
Definition lfsindexcache.hh:893
double Weight
Definition lfsindexcache.hh:894
const ContainerIndex & containerIndex() const
Definition lfsindexcache.hh:896
Definition lfsindexcache.hh:979
LFSIndexCache(const LFS &lfs, const CC &c, bool enable_constraints_caching=!std::is_same< C, EmptyTransformation >::value)
Definition lfsindexcache.hh:984
LFSIndexCache(const LFS &lfs)
Definition lfsindexcache.hh:989
Definition gridfunctionspace/tags.hh:216
T begin(T... args)
T clear(T... args)
T count(T... args)
T end(T... args)
T insert(T... args)
T lexicographical_compare(T... args)
T make_pair(T... args)
T push_back(T... args)
T ref(T... args)
T reserve(T... args)
T resize(T... args)
T size(T... args)
T sort(T... args)
T unique(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8