|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
parallel.hh
Go to the documentation of this file.
34 explicit BuildDataHandle ( const BaseMapper &baseMapper, const AuxiliaryDofs< GridPart, BaseMapper > &auxiliaryDofs, std::vector< GlobalKey > &mapping )
99 ParallelDofMapper ( const GridPartType &gridPart, const BaseMapperType &baseMapper, const InterfaceType commInterface )
114 baseMapper().mapEach( element, [ this, f ] ( auto local, auto i ) { f( local, mapping_[ i ] ); } );
124 void onSubEntity ( const ElementType &element, int i, int c, std::vector< bool > &indices ) const
140 void onSubEntity ( const ElementType &element, int i, int c, std::vector< char > &indices ) const
146 unsigned int numDofs ( const ElementType &element ) const { return baseMapper().numDofs( element ); }
153 baseMapper().mapEachEntityDof( entity, [ this, f ] ( auto local, auto i ) { f( local, mapping_[ i ] ); } );
160 mapEachEntityDof( entity, [ &indices ] ( int local, GlobalKeyType global ) { indices[ local ] = global; } );
183 int numBlocks () const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
184 SizeType offSet ( int blk ) const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
185 SizeType oldOffSet ( int blk ) const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
186 SizeType numberOfHoles ( int blk ) const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
187 SizeType oldIndex ( SizeType hole, int blk ) const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
188 SizeType newIndex ( SizeType hole, int blk ) const { DUNE_THROW( NotImplemented, "Adaptive dof mapper interface not implemented." ); }
212 __ParallelDofMapper::BuildDataHandle< GridPartType, BaseMapperType, GlobalKeyType > dataHandle( baseMapper(), auxiliaryDofs, mapping_ );
233 MPI_Exscan( &in, &out, 1, MPITraits< T >::getType(), MPI_SUM, static_cast< MPI_Comm >( comm ) );
int size() const
size_type dim() const
std::ptrdiff_t index() const
#define DUNE_THROW(E,...)
const GlobalIndex & global() const
LocalIndex & local()
InterfaceType
ForwardCommunication
bool contains(IndexType index) const
return true if index is contained, meaning it is a auxiliary dof
Definition auxiliarydofs.hh:146
IndexType primarySize() const
return number of primaryDofs
Definition auxiliarydofs.hh:134
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
static const bool v
Definition space/mapper/capabilities.hh:23
Definition parallel.hh:33
bool fixedSize(int dim, int codim) const
Definition parallel.hh:39
BuildDataHandle(const BaseMapper &baseMapper, const AuxiliaryDofs< GridPart, BaseMapper > &auxiliaryDofs, std::vector< GlobalKey > &mapping)
Definition parallel.hh:34
std::vector< GlobalKey > & mapping_
Definition parallel.hh:75
bool contains(int dim, int codim) const
Definition parallel.hh:38
void scatter(Buffer &buffer, const Entity &entity, std::size_t n)
Definition parallel.hh:51
std::size_t size(const Entity &entity) const
Definition parallel.hh:64
const BaseMapper & baseMapper_
Definition parallel.hh:73
void gather(Buffer &buffer, const Entity &entity) const
Definition parallel.hh:42
const AuxiliaryDofs< GridPart, BaseMapper > & auxiliaryDofs_
Definition parallel.hh:74
Definition parallel.hh:87
ThisType & operator=(const ThisType &)=delete
ParallelDofMapper(ThisType &&)=delete
void mapEach(const ElementType &element, Functor f) const
Definition parallel.hh:112
void map(const ElementType &element, std::vector< GlobalKeyType > &indices) const
Definition parallel.hh:117
void onSubEntity(const ElementType &element, int i, int c, std::vector< bool > &indices) const
Definition parallel.hh:124
BaseMapperType::ElementType ElementType
Definition parallel.hh:97
ParallelDofMapper(const GridPartType &gridPart, const BaseMapperType &baseMapper, const InterfaceType commInterface)
Definition parallel.hh:99
bool fixedDataSize(int codim) const
Definition parallel.hh:173
ParallelDofMapper(const ThisType &)=delete
void mapEachEntityDof(const Entity &entity, Functor f) const
Definition parallel.hh:151
SizeType newIndex(SizeType hole, int blk) const
Definition parallel.hh:188
void onSubEntity(const ElementType &element, int i, int c, std::vector< char > &indices) const
Definition parallel.hh:140
SizeType numberOfHoles(int blk) const
Definition parallel.hh:186
SizeType oldIndex(SizeType hole, int blk) const
Definition parallel.hh:187
unsigned int numDofs(const ElementType &element) const
Definition parallel.hh:146
InterfaceType communicationInterface() const
Definition parallel.hh:177
const std::vector< GlobalKeyType > & mapping() const
Definition parallel.hh:219
void mapEntityDofs(const Entity &entity, std::vector< GlobalKeyType > &indices) const
Definition parallel.hh:157
unsigned int numEntityDofs(const Entity &entity) const
Definition parallel.hh:164
const GridPartType & gridPart() const
Definition parallel.hh:216
const BaseMapperType & baseMapper() const
Definition parallel.hh:217
T resize(T... args)
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8