|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
ghost.hh
Go to the documentation of this file.
48 explicit BuildDataHandle ( int rank, const BaseMapper &baseMapper, std::vector< std::tuple< int, std::size_t, std::size_t > > &masters )
166 GhostDofMapper ( const GridPartType &gridPart, BaseMapperType &baseMapper, const InterfaceType commInterface )
181 baseMapper().mapEach( element, [ this, &f ] ( auto local, auto i ) { f( local, mapping_[ i ] ); } );
191 void onSubEntity ( const ElementType &element, int i, int c, std::vector< bool > &indices ) const
207 void onSubEntity ( const ElementType &element, int i, int c, std::vector< char > &indices ) const
213 unsigned int numDofs ( const ElementType &element ) const { return baseMapper().numDofs( element ); }
220 baseMapper().mapEachEntityDof( entity, [ this, &f ] ( auto local, auto i ) { f( local, mapping_[ i ] ); } );
227 mapEachEntityDof( entity, [ &indices ] ( int local, GlobalKeyType global ) { indices[ local ] = global; } );
253 int numBlocks () const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
254 SizeType offSet ( int blk ) const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
255 SizeType oldOffSet ( int blk ) const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
256 SizeType numberOfHoles ( int blk ) const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
257 SizeType oldIndex ( SizeType hole, int blk ) const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
258 SizeType newIndex ( SizeType hole, int blk ) const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
290 const auto less = [] ( auto a, auto b ) { return (std::get< 0 >( a ) < std::get< 0 >( b )) || ((std::get< 0 >( a ) == std::get< 0 >( b )) && (std::get< 1 >( a ) < std::get< 1 >( b ))); };
379 ConstIteratorType end () const { return ConstIteratorType( mapper().interiorSize() + mapper().ghostSize() ); }
403 static void forEachPrimaryDof( const AuxiliaryDofs< GridPart, GhostDofMapper< GridPart, BaseMapper, GlobalKey > >& auxiliaryDofs, F&& f )
420 struct PrimaryDofs< AuxiliaryDofs< GridPart, GhostDofMapper< GridPart, BaseMapper, GlobalKey > > >
422 typedef AuxiliaryDofs< GridPart, GhostDofMapper< GridPart, BaseMapper, GlobalKey > > AuxiliaryDofsType;
int size() const
size_type dim() const
std::ptrdiff_t index() const
#define DUNE_THROW(E,...)
const GlobalIndex & global() const
LocalIndex & local()
InterfaceType
ForwardCommunication
const GridPartType & gridPart() const
Definition auxiliarydofs.hh:159
IndexType operator[](const IndexType index) const
return dof number of auxiliary for index
Definition auxiliarydofs.hh:122
Mapper MapperType
type of used mapper
Definition auxiliarydofs.hh:56
static void forEachPrimaryDof(const AuxiliaryDofs &auxiliaryDofs, F &&f)
Apply action encoded in Functor f to all primary dofs.
Definition auxiliarydofs.hh:303
static const bool v
Definition common/indexset.hh:68
In parallel computations the dofs of a discrete function are made up by all primary dofs....
Definition auxiliarydofs.hh:46
In parallel computations the dofs of a discrete function are made up by all primary dofs....
Definition auxiliarydofs.hh:328
static const bool v
Definition space/mapper/capabilities.hh:23
Definition ghost.hh:45
bool fixedSize(int dim, int codim) const
Definition ghost.hh:53
void gather(Buffer &buffer, const Entity &entity) const
Definition ghost.hh:56
std::vector< std::tuple< int, std::size_t, std::size_t > > & masters_
Definition ghost.hh:89
const BaseMapper & baseMapper_
Definition ghost.hh:88
std::size_t size(const Entity &entity) const
Definition ghost.hh:81
std::pair< int, std::size_t > Data
Definition ghost.hh:46
BuildDataHandle(int rank, const BaseMapper &baseMapper, std::vector< std::tuple< int, std::size_t, std::size_t > > &masters)
Definition ghost.hh:48
void scatter(Buffer &buffer, const Entity &entity, std::size_t n)
Definition ghost.hh:65
bool contains(int dim, int codim) const
Definition ghost.hh:52
Definition ghost.hh:99
std::random_access_iterator_tag iterator_category
Definition ghost.hh:103
ThisType & operator++() noexcept
Definition ghost.hh:120
ConstIterator() noexcept=default
bool operator>=(const ThisType &other) const noexcept
Definition ghost.hh:138
ThisType & operator--() noexcept
Definition ghost.hh:123
Index difference_type
Definition ghost.hh:105
ThisType & operator+=(Index n) noexcept
Definition ghost.hh:126
ThisType operator-(Index n) const noexcept
Definition ghost.hh:130
Index operator[](Index n) const noexcept
Definition ghost.hh:115
bool operator<=(const ThisType &other) const noexcept
Definition ghost.hh:137
bool operator>(const ThisType &other) const noexcept
Definition ghost.hh:139
ThisType & operator-=(Index n) noexcept
Definition ghost.hh:127
Index operator*() const noexcept
Definition ghost.hh:112
bool operator==(const ThisType &other) const noexcept
Definition ghost.hh:117
Envelope< Index > operator->() const noexcept
Definition ghost.hh:113
bool operator<(const ThisType &other) const noexcept
Definition ghost.hh:136
bool operator!=(const ThisType &other) const noexcept
Definition ghost.hh:118
friend ThisType operator+(Index n, const ThisType &i) noexcept
Definition ghost.hh:132
Definition ghost.hh:154
unsigned int numDofs(const ElementType &element) const
Definition ghost.hh:213
GhostDofMapper(const GridPartType &gridPart, BaseMapperType &baseMapper, const InterfaceType commInterface)
Definition ghost.hh:166
SizeType numberOfHoles(int blk) const
Definition ghost.hh:256
void onSubEntity(const ElementType &element, int i, int c, std::vector< bool > &indices) const
Definition ghost.hh:191
GhostDofMapper(const ThisType &)=delete
GhostDofMapper(ThisType &&)=delete
void mapEntityDofs(const Entity &entity, std::vector< GlobalKeyType > &indices) const
Definition ghost.hh:224
ThisType & operator=(const ThisType &)=delete
InterfaceType communicationInterface() const
Definition ghost.hh:247
void mapEachEntityDof(const Entity &entity, Functor f) const
Definition ghost.hh:218
unsigned int numEntityDofs(const Entity &entity) const
Definition ghost.hh:231
const BaseMapperType & baseMapper() const
Definition ghost.hh:308
void mapEach(const ElementType &element, Functor f) const
Definition ghost.hh:179
const std::vector< GlobalKeyType > & mapping() const
Definition ghost.hh:310
BaseMapperType::ElementType ElementType
Definition ghost.hh:164
SizeType newIndex(SizeType hole, int blk) const
Definition ghost.hh:258
void map(const ElementType &element, std::vector< GlobalKeyType > &indices) const
Definition ghost.hh:184
SizeType oldIndex(SizeType hole, int blk) const
Definition ghost.hh:257
void onSubEntity(const ElementType &element, int i, int c, std::vector< char > &indices) const
Definition ghost.hh:207
Definition ghost.hh:349
const GridPartType & gridPart() const
Definition ghost.hh:387
const MapperType & mapper() const
Definition ghost.hh:386
ConstIteratorType end() const
Definition ghost.hh:379
MapperType::SizeType SizeType
Definition ghost.hh:357
void rebuild()
Definition ghost.hh:384
GhostDofMapper< GridPart, BaseMapper, GlobalKey > MapperType
Definition ghost.hh:354
MapperType::GlobalKeyType GlobalKeyType
Definition ghost.hh:356
SizeType size() const
return number of auxiliary dofs
Definition ghost.hh:373
__GhostDofMapper::ConstIterator< GlobalKeyType > ConstIteratorType
Definition ghost.hh:359
ConstIteratorType begin() const
Definition ghost.hh:378
GridPart GridPartType
Definition ghost.hh:353
Dune::Fem::AuxiliaryDofs< GridPart, GhostDofMapper< GridPart, BaseMapper, GlobalKey > >::primarySize
SizeType primarySize() const
return number of primary dofs
Definition ghost.hh:376
bool contains(GlobalKeyType index) const
return true if index is contained, meaning it is an auxiliary dof
Definition ghost.hh:382
AuxiliaryDofs(const GridPartType &gridPart, const MapperType &mapper)
Definition ghost.hh:365
AuxiliaryDofs(const MapperType &mapper)
Definition ghost.hh:361
const GridPartType & gridPart() const
Definition ghost.hh:442
PrimaryDofs(const AuxiliaryDofsType &auxiliaryDofs)
Definition ghost.hh:432
AuxiliaryDofsType::GlobalKeyType GlobalKeyType
Definition ghost.hh:424
AuxiliaryDofsType::SizeType SizeType
Definition ghost.hh:427
ConstIteratorType end() const
Definition ghost.hh:437
ConstIteratorType begin() const
Definition ghost.hh:436
const MapperType & mapper() const
Definition ghost.hh:441
SizeType size() const
Definition ghost.hh:439
AuxiliaryDofsType::GridPartType GridPartType
Definition ghost.hh:425
AuxiliaryDofs< GridPart, GhostDofMapper< GridPart, BaseMapper, GlobalKey > > AuxiliaryDofsType
Definition ghost.hh:422
AuxiliaryDofsType::MapperType MapperType
Definition ghost.hh:426
__GhostDofMapper::ConstIterator< GlobalKeyType > ConstIteratorType
Definition ghost.hh:429
Definition envelope.hh:11
T begin(T... args)
T end(T... args)
T forward(T... args)
T make_tuple(T... args)
T resize(T... args)
T size(T... args)
T sort(T... args)
T tie(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8