|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
blockmapper.hh
Go to the documentation of this file.
104 using BaseType = AdaptiveDofMapper< DiscontinuousGalerkinBlockMapperTraits< GridPart, LocalKeys > >;
174 : DiscontinuousGalerkinBlockMapper( gridPart, localKeys, value, [&value]( const ElementType & ){ return value; } )
230 void onSubEntity ( const ElementType &element, int i, int c, std::vector< bool > &indices ) const
246 void onSubEntity ( const ElementType &element, int i, int c, std::vector< char > &indices ) const
318 typename std::enable_if< (std::is_same< Element, ElementType >::value || std::is_same< Element, GridElementType >::value), const KeyType & >::type
667 PersistentContainer< GridType, std::pair< KeyType, KeyType > > tmp( gridPart().grid(), 0, std::make_pair( key_, key_ ) );
virtual void operator()()=0
#define DUNE_THROW(E,...)
iterator(ParallelIndexSet< TG, TL, N > &indexSet, const Father &father)
void assign(T &dst, const T &src, bool mask)
constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant< std::size_t, pos >={})
ForwardCommunication
InteriorBorder_All_Interface
U_CHAR ElementType
STL namespace.
const GridEntityAccess< Entity >::GridEntityType & gridEntity(const Entity &entity)
Definition gridpart.hh:510
IteratorRange< typename DF::DofIteratorType > dofs(DF &df)
Iterates over all DOFs.
Definition rangegenerators.hh:76
GridImp::template Codim< cd >::Entity Entity
void swap(This &other)
static const bool v
Definition common/indexset.hh:68
Definition dofmanager.hh:786
An -adaptive Dune::Fem::DofMapper.
Definition blockmapper.hh:102
void backup() const
this mapper has no I/O capabilities
Definition blockmapper.hh:442
static constexpr SizeType oldOffSet(const int block)
return 0 (this mapper has no offset)
Definition blockmapper.hh:302
DiscontinuousGalerkinBlockMapper(const GridPartType &gridPart, const LocalKeysType &localKeys, const KeyType &value)
Definition blockmapper.hh:171
SizeType size() const
return number of dofs
Definition blockmapper.hh:211
GlobalKeyType newIndex(const int hole, const int block) const
return new index of given hole during compression
Definition blockmapper.hh:292
std::enable_if<(std::is_same< Element, ElementType >::value||std::is_same< Element, GridElementType >::value), constKeyType & >::type key(const Element &element) const
get key currently assigned to an entity
Definition blockmapper.hh:319
typename LocalKeysType::KeyType KeyType
key type
Definition blockmapper.hh:120
static constexpr bool consecutive()
return true (this mapper yields a consecutive DOF numbering)
Definition blockmapper.hh:299
GridPart GridPartType
grid part type
Definition blockmapper.hh:113
void write(OutStreamInterface< Traits > &)
this mapper has no I/O capabilities
Definition blockmapper.hh:429
void mapEachEntityDof(const Entity &entity, Function function) const
map local dof to global key
Definition blockmapper.hh:270
DiscontinuousGalerkinBlockMapper(const ThisType &)=delete
copy constructor
void mapEach(const ElementType &element, Function function) const
map local dof to global key
Definition blockmapper.hh:263
LocalKeys LocalKeysType
basis function sets type
Definition blockmapper.hh:118
SizeType numEntityDofs(const Entity &entity) const
return number of dofs for given element
Definition blockmapper.hh:224
ThisType & operator=(const ThisType &)=delete
assignment operator
typename BaseType::ElementType ElementType
element type
Definition blockmapper.hh:115
void insertNewEntity(const GridElementType &gridElement)
add DOFs for new element
Definition blockmapper.hh:383
bool adapt()
please doc me
Definition blockmapper.hh:343
void insertEntity(const GridElementType &gridElement)
add DOFs for element
Definition blockmapper.hh:363
static constexpr bool fixedDataSize(int codim)
return true if number of dofs is fixed for given codimension
Definition blockmapper.hh:259
const DofManagerType & dofManager() const
return DOF manager
Definition blockmapper.hh:360
DiscontinuousGalerkinBlockMapper(const GridPartType &gridPart, const LocalKeysType &localKeys, const KeyType &value, Function function)
Definition blockmapper.hh:143
KeyType getMark(const ElementType &element) const
get key to be assigned to an entity after next call to adapt()
Definition blockmapper.hh:332
bool compress()
compress DOF mapping
Definition blockmapper.hh:615
DiscontinuousGalerkinBlockMapper(ThisType &&)=default
move constructor
typename BaseType::GlobalKeyType GlobalKeyType
global key type
Definition blockmapper.hh:110
void read(InStreamInterface< Traits > &)
this mapper has no I/O capabilities
Definition blockmapper.hh:436
void onSubEntity(const ElementType &element, int i, int c, std::vector< bool > &indices) const
Definition blockmapper.hh:230
SizeType numDofs(const ElementType &element) const
return number of dofs for given element
Definition blockmapper.hh:217
int maxNumDofs() const
return upper bound for number of dofs
Definition blockmapper.hh:214
SizeType numberOfHoles(const int block) const
return number of holes during compression
Definition blockmapper.hh:276
static constexpr bool contains(const int codim)
return true if dofs are associated to codimension
Definition blockmapper.hh:256
void removeEntity(const GridElementType &gridElement)
mark DOFs for removal
Definition blockmapper.hh:372
GlobalKeyType oldIndex(const int hole, const int block) const
return old index of given hole during compression
Definition blockmapper.hh:283
void onSubEntity(const ElementType &element, int i, int c, std::vector< char > &indices) const
Definition blockmapper.hh:246
static constexpr SizeType offSet(const int block)
return 0 (this mapper has no offset)
Definition blockmapper.hh:305
void restore()
this mapper has no I/O capabilities
Definition blockmapper.hh:448
void mark(const KeyType &key, const ElementType &element)
set key to be assigned to an entity after next call to adapt()
Definition blockmapper.hh:325
static constexpr SizeType numBlocks()
return 1 (this mapper has one block)
Definition blockmapper.hh:308
typename BaseType::SizeType SizeType
size type
Definition blockmapper.hh:108
Definition blockmapper.hh:520
Reserve(SizeType &size)
Definition blockmapper.hh:521
Definition blockmapper.hh:538
~Resize()
Definition blockmapper.hh:545
Resize(std::vector< GlobalKeyType > &holes)
Definition blockmapper.hh:539
Definition space/hpdg/datahandle.hh:32
Definition localdofstorage.hh:25
static const bool v
Definition space/mapper/capabilities.hh:23
Traits::ElementType ElementType
type of codimension 0 entities
Definition mapper/dofmapper.hh:54
Extended interface for adaptive DoF mappers.
Definition mapper/dofmapper.hh:219
SizeType GlobalKeyType
at the moment this should be similar to SizeType
Definition mapper/dofmapper.hh:230
BaseType::SizeType SizeType
type of size integer
Definition mapper/dofmapper.hh:227
T begin(T... args)
T copy(T... args)
T empty(T... args)
T end(T... args)
T erase(T... args)
T fill(T... args)
T get(T... args)
T insert(T... args)
T is_sorted(T... args)
T lower_bound(T... args)
T make_pair(T... args)
T max(T... args)
T reserve(T... args)
T resize(T... args)
T size(T... args)
T transform(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8